From 5ad1b216839274d8a95bbb2e100ba5b4e1590a5f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 1 Sep 2006 18:47:47 +0000 Subject: [PATCH] Allow pluggable wp-db. #2721 git-svn-id: https://develop.svn.wordpress.org/trunk@4154 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 6adda4f88e..0040dc6b52 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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';