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:
Peter Westwood 2009-12-30 10:15:10 +00:00
parent 276e9c3b09
commit 256e7e7a07
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();