WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2010 07:13:47 PM (9 years ago)
Author:
nacin
Message:

Always include wp-db.php. Prevents a conditional include and allows db dropins to cleanly extend the wpdb class. Move require_wp_db() to load.php for consistency with bootloader helpers. fixes #14508.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r15564 r15638  
    15551555}
    15561556
    1557 if ( ! isset( $wpdb ) ) {
    1558     /**
    1559      * WordPress Database Object, if it isn't set already in wp-content/db.php
    1560      * @global object $wpdb Creates a new wpdb object based on wp-config.php Constants for the database
    1561      * @since 0.71
    1562      */
    1563     $wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
    1564 }
    15651557?>
Note: See TracChangeset for help on using the changeset viewer.