[wp-trac] [WordPress Trac] #21300: Implement autoloader compatible with PSR-0 for plugins and themes

WordPress Trac noreply at wordpress.org
Thu Sep 19 17:34:00 UTC 2013


#21300: Implement autoloader compatible with PSR-0 for plugins and themes
-----------------------------+------------------------------
 Reporter:  dave1010         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by MikeSchinkel):

 Questions regarding this proposal: Assuming that autoloaders were enabled
 for plugins and themes, would that mean that each plugin and theme would
 move their libraries into a single autoload directory outside of their own
 plugin and/or theme directory, or would each plugin and/or theme would
 have their own directory(s) that they would have autoloaded?

 If the former, would that not be a significant departure from existing
 WordPress architecture, especially dealing with the issues of required
 write permissions for code in these new directories?  Would that not be
 problematic?

 If the latter, for sites with more than a few plugins would that not
 result in performance concerns where the autoloader has to test the file
 system for file existence across many different directories every time it
 needs to load a file?  Would that not too be problematic?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21300#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list