Opened 11 years ago
Closed 11 years ago
#26678 closed defect (bug) (duplicate)
sunrise.php gets included for all values of SUNRISE, including false and 'off'
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description ¶
The most common example of enabling sunrise.php is to set define( 'SUNRISE', 'on' );
in wp-config.php
. Programmers might expect, then, that 'off' would disable it.
Likewise, the standard for other constants, such as WP_DEBUG
is true
turns it on, false
turns it off.
Right now, any value of SUNRISE, including define( 'SUNRISE', false );
, includes the file.
Attached patch allows either false
or 'off'
to disable sunrise.php
Pull Requests
- Loading…
Note: See
TracTickets for help on using
tickets.
Allow either false or 'off' to disable sunrise.php