[wp-trac] [WordPress Trac] #20220: add test to see if sunrise === on in ms-settings

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 12 19:06:57 UTC 2012


#20220: add test to see if sunrise === on in ms-settings
-------------------------+-----------------------------
 Reporter:  sboisvert    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Multisite    |    Version:
 Severity:  trivial      |   Keywords:  has-patch
-------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20220>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list