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:
westi 2009-12-30 10:15:10 +00:00
parent 3f3846e2fc
commit 7d2e5130f6
1 changed files with 1 additions and 4 deletions

View File

@ -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();