Allow pluggable wp-db. #2721

git-svn-id: https://develop.svn.wordpress.org/trunk@4154 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-09-01 18:47:47 +00:00
parent 44a1fe982d
commit 5ad1b21683
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,10 @@ if ( defined('WP_CACHE') )
require (ABSPATH . 'wp-content/advanced-cache.php');
define('WPINC', 'wp-includes');
require_once (ABSPATH . WPINC . '/wp-db.php');
if ( file_exists(ABSPATH . 'wp-content/wp-db.php') )
require (ABSPATH . 'wp-content/wp-db.php');
else
require_once (ABSPATH . WPINC . '/wp-db.php');
// Table names
$wpdb->posts = $table_prefix . 'posts';