From 5e1d368094d12b4246cc8c6da2165b1f2d3c064e Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@6017 602fd350-edb4-49c9-b593-d223f7449a82 --- 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');