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

WordPress Trac noreply at wordpress.org
Wed Mar 30 06:58:49 UTC 2016


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

Comment (by dnaber-de):

 Hi @rmccue
 thanks for your feedback. Using `__autoload()` as fallback is a good idea,
 I already forgot  about that function but of course, it's the most obvious
 way to polyfill SPL autoloading.

 Currently, we're improving the concept behind the proposal.

 > Firstly, let's make every class that's not always loaded (wp-admin, etc)
 loadable via autoloading. This is probably a large task in itself, as we
 need to switch to one-class-per-file with predictable file naming.

 Sure thing. I think this should go in a separate ticket as this is
 somewhat a separate task. What do you think?

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


More information about the wp-trac mailing list