From 36851becbd5d5060a0b3f89da74fb987b9890088 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 3 Sep 2007 16:17:10 +0000 Subject: [PATCH] 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 --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index c4f918c135..c4fafd7ab5 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -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');