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

WordPress Trac noreply at wordpress.org
Fri Aug 9 18:45:34 UTC 2024


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

Comment (by azaozz):

 Replying to [comment:41 aristath]:
 > Are we saying that we don't want to do something in WordPress Core,
 because there's a ''possibility'' a plugin ''might'' do something bad?

 As far as I see, not quite. The difference here is to impose certain
 restrictions on what plugins can do. This is similar to adding a `private`
 method to a class, instead of adding a `public` method and hope that
 plugins won't use it.

 I agree it is a harsher way to do this (see previous comment), however
 imho this would be a good "code design" decision that would make
 everybody's life easier in the future.

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


More information about the wp-trac mailing list