[wp-trac] [WordPress Trac] #60414: Core PHP autoloader proposal

WordPress Trac noreply at wordpress.org
Wed Apr 3 12:55:25 UTC 2024


#60414: Core PHP autoloader proposal
-------------------------------------+-------------------------------------
 Reporter:  aristath                 |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  performance,
  tests early                        |  sustainability
-------------------------------------+-------------------------------------

Comment (by Kaloyan):

 There are places in the code with defensive `class_exists()` checks before
 class declarations, like this:

 `if ( ! class_exists( 'Some_Class', false ) ) class Some_Class {}`

 Considering the autoloading changes, do you think those defensive checks
 are still going to be necessary?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60414#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list