Make WordPress Core

#56374 closed enhancement (duplicate)

Rename class. files?

Reported by: dingo_d's profile dingo_d Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Script Loader Keywords:
Focuses: coding-standards Cc:

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.

Change History (1)

#1 @SergeyBiryukov
21 months ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, thanks for the ticket! We're already tracking this enhancement in #37861.

Note: See TracTickets for help on using tickets.