Corrections for WP 3.1+ support
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418075 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
1 parent
fc3fa76f97
commit
a51d5b5532
2 files changed
+19
-3
No files matched your search
@@ -45,4 +45,10 @@ $replaces = array(
|
||||
);
|
||||
eval( str_replace( array_keys($replaces), array_values($replaces), file_get_contents(ABSPATH.'/wp-includes/wp-db.php')));
|
||||
require_once( ABSPATH.'/wp-includes/wp-db.php');
|
||||
|
||||
if (! isset($wpdb)) {
|
||||
// Create wpdb object if not already done
|
||||
$wpdb = new wpdb2( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
|
||||
}
|
||||
|
||||
} // Protection against multiple loading
|
||||
Reference in new issue
Block a user