Make WordPress Core


Ignore:
Timestamp:
07/21/2022 03:58:51 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move wp-includes/wp-db.php to wp-includes/class-wpdb.php.

This renames the file containing the wpdb class to conform to the coding standards.

This commit also includes:

  • A new wp-db.php that loads the new file, for anyone that may have been including the file directly.
  • Replacing references to the old filename with the new filename.

Fixes #56268. See #55647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r53458 r53749  
    545545    global $wpdb;
    546546
    547     require_once ABSPATH . WPINC . '/wp-db.php';
     547    require_once ABSPATH . WPINC . '/class-wpdb.php';
     548
    548549    if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
    549550        require_once WP_CONTENT_DIR . '/db.php';
Note: See TracChangeset for help on using the changeset viewer.