Allow pluggable wp-db. #2721

git-svn-id: http://svn.automattic.com/wordpress/trunk@4154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-01 18:47:47 +00:00
parent 4cc5a3d8e9
commit c01753aff6

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';