[wp-trac] [WordPress Trac] #33161: Create a standard for defining and identifying site environment

WordPress Trac noreply at wordpress.org
Wed Jun 10 21:13:44 UTC 2020


#33161: Create a standard for defining and identifying site environment
--------------------------------------+-----------------------------
 Reporter:  krogsgard                 |       Owner:  SergeyBiryukov
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.5
Component:  Options, Meta APIs        |     Version:  4.2
 Severity:  normal                    |  Resolution:
 Keywords:  needs-dev-note has-patch  |     Focuses:
--------------------------------------+-----------------------------

Comment (by TimothyBlynJacobs):

 I think it'd be valuable to make sure this value is the same throughout
 the entire request by caching it internally, perhaps with  a `static`
 variable. Having the environment change out from under you could lead to
 weirdness depending on how developers are utilizing the environment type.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/33161#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list