mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
+1
-1
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user