Instantiate wpdb only if not already set. #2721
git-svn-id: https://develop.svn.wordpress.org/trunk@4153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b79504585c
commit
44a1fe982d
|
@ -363,5 +363,6 @@ class wpdb {
|
|||
}
|
||||
}
|
||||
|
||||
$wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
|
||||
if ( ! isset($wpdb) )
|
||||
$wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
|
||||
?>
|
Loading…
Reference in New Issue