#56268 closed enhancement (fixed)
Rename wp-db.php to class-wpdb.php
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Database | Keywords: | needs-dev-note |
Focuses: | coding-standards | Cc: |
Description
wpdb
is the only core class that is not an external library and does not follow the class-*.php
naming pattern:
| WARNING | Class file names should be based on the class name | | with "class-" prepended. Expected class-wpdb.php, but | | found wp-db.php. | | (WordPress.Files.FileName.InvalidClassFileName)
For consistency with the rest of core classes and to conform to naming conventions in WordPress coding standards, the class should be moved to wp-includes/class-wpdb.php
, following the process in comment:33:ticket:47632.
For backward compatibility, the new file should be included from wp-includes/wp-db.php
.
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 53749: