WordPress.org

Make WordPress Core

Changeset 4153


Ignore:
Timestamp:
09/01/2006 06:44:13 PM (13 years ago)
Author:
ryan
Message:

Instantiate wpdb only if not already set. #2721

File:
1 edited

Legend:

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

    r4092 r4153  
    364364}
    365365
    366 $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
     366if ( ! isset($wpdb) )
     367    $wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
    367368?>
Note: See TracChangeset for help on using the changeset viewer.