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

WordPress Trac noreply at wordpress.org
Tue Jul 28 12:08:56 UTC 2020


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

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


Comment:

 In [changeset:"48662" 48662]:
 {{{
 #!CommitTicketReference repository="" revision="48662"
 Bootstrap/Load: Remove the `wp_environment_type` and
 `wp_get_environment_type` filters.

 Since `wp_get_environment_type()` runs too early for plugins to hook these
 filters, and the result is then cached in a static variable and cannot be
 changed later, the filters are not that useful.

 The `WP_ENVIRONMENT_TYPES` and `WP_ENVIRONMENT_TYPE` constants and
 environment variables should be enough for now.

 Follow-up to [47919], [48188], [48372].

 Props Clorith, SergeyBiryukov.
 Fixes #33161.
 }}}

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


More information about the wp-trac mailing list