add test to see if sunrise === on in ms-settings
|Reported by:||sboisvert||Owned by:|
|Severity:||normal||Keywords:||has-patch commit 3.5-early|
We needed to disable sunrise for certain requests.
We thought about declaring sunrise before including wp-load, but setting it to 'off'. Then having a conditial in the wp-config that only defines it to on if it is not defined and then in ms-settings to a additional check to see if sunrise is defined and equal to on. (the patch I am adding does not have the wp-config if !defined() as wp-config doesn't get updated, but if someone feels it is helpful I can add it)
Others could of changed the default defined value of sunrise and this could break bc. I am therefore not sure if the limited use case warrants it. But I thought I would suggest it.
Change History (10)
- Keywords needs-patch added; has-patch removed
- Severity changed from trivial to normal
- Version set to 3.0
- Keywords commit 3.5-early added
- Milestone changed from Awaiting Review to Future Release