Use a more reliable method of locating wp-load.php in the admin bootstrap. Fixes #11120.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f3846e2fc
commit
7d2e5130f6
|
@ -14,10 +14,7 @@
|
||||||
if ( !defined('WP_ADMIN') )
|
if ( !defined('WP_ADMIN') )
|
||||||
define('WP_ADMIN', TRUE);
|
define('WP_ADMIN', TRUE);
|
||||||
|
|
||||||
if ( defined('ABSPATH') )
|
require_once(dirname(dirname(__FILE__)) . '/wp-load.php');
|
||||||
require_once(ABSPATH . 'wp-load.php');
|
|
||||||
else
|
|
||||||
require_once('../wp-load.php');
|
|
||||||
|
|
||||||
if ( get_option('db_upgraded') ) {
|
if ( get_option('db_upgraded') ) {
|
||||||
$wp_rewrite->flush_rules();
|
$wp_rewrite->flush_rules();
|
||||||
|
|
Loading…
Reference in New Issue