#20636 closed enhancement (fixed)
define ('RELOCATE', false) does the same thing as RELOCATE, true
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch commit 3.5-early |
| 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)
comment:1
JustinSainton
— 14 months ago
comment:2
nacin
— 14 months ago
Yes, checking for truthiness here seems proper. No need for identically here, as people will often use 1/0 as well.
JustinSainton
— 14 months ago
comment:3
JustinSainton
— 14 months ago
- Keywords has-patch dev-feedback added
comment:4
TomAuger
— 14 months ago
Good stuff. @JustinSainton thanks for patch. I'm away from my sandbox ATM.
comment:5
SergeyBiryukov
— 14 months 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
comment:6
johnbillion
— 13 months ago
This also affects SUNRISE in the same manner, see #20220.
Should just be able to check