Instantiate wpdb only if not already set. #2721
git-svn-id: http://svn.automattic.com/wordpress/trunk@4153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad0fa5ef99
commit
4cc5a3d8e9
|
@ -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