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

WordPress Trac noreply at wordpress.org
Sat Jun 27 10:34:19 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 SergeyBiryukov):

 In [changeset:"48188" 48188]:
 {{{
 #!CommitTicketReference repository="" revision="48188"
 Bootstrap/Load: Make some adjustments to `wp_get_environment_type()`:

 * Rename the `wp_approved_environment_types` filter to
 `wp_environment_types`.
 * Introduce `WP_ENVIRONMENT_TYPES` system variable and constant to
 complement the filter.
 * Correct the argument type for the `wp_environment_types` filter.
 * Cache the result in a static variable to ensure consistent return value.
 * Rename the `stage` type to `staging`.

 Follow-up to [47919].

 Props dlh, dd32, TimothyBlynJacobs, johnbillion, pbiron.
 See #33161.
 }}}

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


More information about the wp-trac mailing list