Changes between Version 2 and Version 3 of Ticket #36335, comment 144
- Timestamp:
- 09/01/2016 01:49:50 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36335, comment 144
v2 v3 28 28 Ideally 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. 29 29 30 > class-foo-bar.php vs. WP_Foo_Bar.php30 > `class-foo-bar.php` vs. `WP_Foo_Bar.php` 31 31 32 32 I 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.