Only obey the RELOCATE move flag if it evaluates to true. props TomAuger, JustinSainton, fixes #20636.

git-svn-id: https://develop.svn.wordpress.org/trunk@21251 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-07-09 19:32:09 +00:00
parent 041b5f7af1
commit de52076568
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ nocache_headers();
header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
if ( defined('RELOCATE') ) { // Move flag is set
if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set
if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
$_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );