WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #36335, comment 144


Ignore:
Timestamp:
09/01/2016 01:49:50 AM (4 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36335, comment 144

    v2 v3  
    2828Ideally the class-map autoloader would be optimized for the number of lines that need to run for a file to be autoloaded, and that the class-map loader would be run first in front of the other optional autoloaders.  And rather than separating concerns for the class-map loader, optimize it instead.
    2929
    30 > class-foo-bar.php vs. WP_Foo_Bar.php
     30> `class-foo-bar.php` vs. `WP_Foo_Bar.php`
    3131
    3232I started our WPLib autoloader following that pattern, but am currently working on a version that will move to using classnames for filenames because it solves the problem of to find the filename for a class in a classmap. This is very helpful when writing code that needs to be able to determine what plugin a class is in, or if it in the theme, for example.