#56268 closed enhancement (fixed)
Rename wp-db.php to class-wpdb.php
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Database | Version: | |
| Severity: | normal | Keywords: | needs-dev-note |
| Cc: | Focuses: | coding-standards |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 53749: