Opened 12 years ago
Closed 12 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
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Allow either false or 'off' to disable sunrise.php