[wp-trac] [WordPress Trac] #20636: define ('RELOCATE', false) does the same thing as RELOCATE, true

WordPress Trac wp-trac at lists.automattic.com
Tue May 8 16:56:49 UTC 2012


#20636: define ('RELOCATE', false) does the same thing as RELOCATE, true
----------------------------+-----------------------------
 Reporter:  TomAuger        |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Graphic Design  |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 It's a little unintuitive that define('RELOCATE',false) and
 define('RELOCATE', true) do the same thing. A viable use-case is in
 development, leaving the RELOCATE defined, but set to false to easily
 switch it to 'true' when a site is moved.

 Regardless of the use case, I recommend we change the check from

 {{{
 if ( defined( 'RELOCATE' ) )
 }}}

 to

 {{{
 if ( defined( 'RELOCATE' ) && RELOCATE === true )
 }}}

 on line 351 of wp-login.php

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20636>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list