WordPress.org

Make WordPress Core

Changeset 21251


Ignore:
Timestamp:
07/09/12 19:32:09 (22 months ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r21135 r21251  
    362362header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 
    363363 
    364 if ( defined('RELOCATE') ) { // Move flag is set 
     364if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set 
    365365    if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) 
    366366        $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); 
Note: See TracChangeset for help on using the changeset viewer.