[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:44:27 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:
--------------------------------------+--------------------------

Comment (by SergeyBiryukov):

 In [changeset:"48896" 48896]:
 {{{
 #!CommitTicketReference repository="" revision="48896"
 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.
 Merges [48894] and [48895] to the 5.5 branch.
 Fixes #50992.
 }}}

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


More information about the wp-trac mailing list