Changeset 4153

Show
Ignore:
Timestamp:
09/01/06 18:44:13 (2 years ago)
Author:
ryan
Message:

Instantiate wpdb only if not already set. #2721

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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?>