Opened 4 years ago
Closed 4 years ago
#56374 closed enhancement (duplicate)
Rename class. files?
| Reported by: | dingo_d | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Script Loader | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | coding-standards |
Description
The current coding standards note that the name of the class files should be based on the class name with class- prepended, and the underscores replaced by hyphens (rule in the handbook), except for the three legacy files: class.wp-dependencies.php, class.wp-scripts.php, class.wp-styles.php.
Seeing how in ticket #56268 the wp-db.php file was renamed to class-wpdb.php, with the bc layer, could the same be done to the above-mentioned classes?
This would bring more uniformity to the codebase.
I mean, the 'downside' would be that we'd still have these files in the codebase (like currently, we do still have the wp-db.php file, but it only holds the inclusion for the class-wpdb.php), but the upside would be more consistency. Plus it would be better for any future autoloading addition down the line IMO.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, thanks for the ticket! We're already tracking this enhancement in #37861.