#20636 closed enhancement (fixed)
define ('RELOCATE', false) does the same thing as RELOCATE, true
Reported by: | TomAuger | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch commit 3.5-early |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (9)
#2
@
12 years ago
Yes, checking for truthiness here seems proper. No need for identically here, as people will often use 1/0 as well.
#5
@
12 years ago
- Component changed from Graphic Design to Administration
- Keywords commit 3.5-early added; dev-feedback removed
- Milestone changed from Awaiting Review to Future Release
Note: See
TracTickets for help on using
tickets.
Should just be able to check