Switch to require_once for wp-includes/db.php when it exists. Fixes #4597 props intoxination.

git-svn-id: http://svn.automattic.com/wordpress/trunk@6017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-09-03 16:17:10 +00:00
parent 3235902cff
commit 36851becbd

View File

@ -111,7 +111,7 @@ if ( !defined('LANGDIR') ) {
if ( !defined('PLUGINDIR') )
define('PLUGINDIR', 'wp-content/plugins'); // no leading slash, no trailing slash
if ( file_exists(ABSPATH . 'wp-content/db.php') )
require (ABSPATH . 'wp-content/db.php');
require_once (ABSPATH . 'wp-content/db.php');
else
require_once (ABSPATH . WPINC . '/wp-db.php');