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

git-svn-id: https://develop.svn.wordpress.org/trunk@6017 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-09-03 16:17:10 +00:00
parent 617592ce64
commit 5e1d368094
1 changed files with 1 additions and 1 deletions

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