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:
ryan 2006-09-01 18:44:13 +00:00
parent ad0fa5ef99
commit 4cc5a3d8e9
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);
?> ?>