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

WordPress Trac noreply at wordpress.org
Wed Jul 1 18:43:30 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 dlh):

 Assuming that `wp_initial_constants()` would continue to be called when it
 is currently, then it looks to me like using `wp_get_environment_type()`
 to determine the default value for `WP_DEBUG` would mean the new `static
 $current_env` would be set very early, even before MU plugins. That might
 not be a bad tradeoff for the consistency of knowing when the environment
 type will be set, but noting it just in case.

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


More information about the wp-trac mailing list