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

WordPress Trac noreply at wordpress.org
Sat Jun 6 11:05:49 UTC 2020


#33161: Create a standard for defining and identifying site environment
--------------------------------+-----------------------------
 Reporter:  krogsgard           |       Owner:  SergeyBiryukov
     Type:  enhancement         |      Status:  closed
 Priority:  normal              |   Milestone:  5.5
Component:  Options, Meta APIs  |     Version:  4.2
 Severity:  normal              |  Resolution:  fixed
 Keywords:  needs-patch         |     Focuses:
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47919" 47919]:
 {{{
 #!CommitTicketReference repository="" revision="47919"
 Bootstrap/Load: Introduce `wp_get_environment_type()` to retrieve the
 current environment type.

 The type can be set via the `WP_ENVIRONMENT_TYPE` global system variable,
 a constant of the same name, or the `wp_get_environment_type` filter.

 Possible values include `development`, `stage`, `production'. If not set,
 the type defaults to `production`.

 Props Clorith, krogsgard, joostdevalk, frank-klein, Maelacuna, nathanrice,
 grierson, jchristopher, davidvee, jackfungi, johnbillion, tabrisrp,
 knutsp, ev3rywh3re, Rastaban, danielbachhuber, pfefferle, audrasjb,
 SergeyBiryukov.
 Fixes #33161.
 }}}

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


More information about the wp-trac mailing list