[wp-trac] [WordPress Trac] #50992: Consider removing the ability to alter the list of environment types

WordPress Trac noreply at wordpress.org
Thu Aug 27 21:30:49 UTC 2020


#50992: Consider removing the ability to alter the list of environment types
--------------------------------------+--------------------------
 Reporter:  johnbillion               |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5.1
Component:  Bootstrap/Load            |     Version:  5.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  needs-dev-note has-patch  |     Focuses:
--------------------------------------+--------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"48894" 48894]:
 {{{
 #!CommitTicketReference repository="" revision="48894"
 Bootstrap/Load: Remove the ability to alter the list of environment types
 in `wp_get_environment_type()`.

 The intention of `wp_get_environment_type()` is to provide a consistent
 means of identifying the environment type, not of identifying a specific
 environment.

 Actual environments should fit within one of the existing types: `local`,
 `development`, `staging`, or `production`. That should cover the types
 that plugins and themes might be concerned about when toggling
 functionality.

 Props johnbillion, joostdevalk, TimothyBlynJacobs, jeremyfelt, batmoo,
 claytoncollie, Clorith, markjaquith, garrett-eclipse, GaryJ, elrae.
 Fixes #50992.
 }}}

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


More information about the wp-trac mailing list