Use a more reliable method of locating wp-load.php in the admin bootstrap. Fixes #11120.
git-svn-id: https://develop.svn.wordpress.org/trunk@12583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
276e9c3b09
commit
256e7e7a07
@ -14,10 +14,7 @@
|
||||
if ( !defined('WP_ADMIN') )
|
||||
define('WP_ADMIN', TRUE);
|
||||
|
||||
if ( defined('ABSPATH') )
|
||||
require_once(ABSPATH . 'wp-load.php');
|
||||
else
|
||||
require_once('../wp-load.php');
|
||||
require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
|
||||
|
||||
if ( get_option('db_upgraded') ) {
|
||||
$wp_rewrite->flush_rules();
|
||||
|
Loading…
Reference in New Issue
Block a user