[wp-trac] [WordPress Trac] #36335: Next generation: core autoloader proposal

WordPress Trac noreply at wordpress.org
Mon Sep 5 10:53:30 UTC 2016


#36335: Next generation: core autoloader proposal
-----------------------------+------------------
 Reporter:  dnaber-de        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------

Comment (by tfrommen):

 Replying to [comment:178 GaryJ]:
 > Replying to [comment:177 MikeSchinkel]:
 > > I would propose as another strawman that we create `wp-
 includes/classes` and `wp-admin/classes` directories and slowly start
 moving classes that we want to autoload into those two directories,
 renaming their files to match their classname.
 >
 > FWIW, I would disagree about the `classes` naming of those directories,
 as it semantically excludes the potential future use of interface and
 traits, without having to add other directories to map to.

 +1

 In addition, there still would be classes that do not live in that folder.

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


More information about the wp-trac mailing list