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:
Ryan Boren 2006-09-01 18:44:13 +00:00
parent b79504585c
commit 44a1fe982d
1 changed files with 2 additions and 1 deletions

View File

@ -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);
?>