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

WordPress Trac noreply at wordpress.org
Tue Jul 28 08:26:49 UTC 2020


#33161: Create a standard for defining and identifying site environment
--------------------------------------+-----------------------------
 Reporter:  krogsgard                 |       Owner:  SergeyBiryukov
     Type:  task (blessed)            |      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 Clorith):

 @SergeyBiryukov Go for it, you may be right and that may avoid some
 confusion down the line... since the filter _could_ be used by a plugin,
 but you may have different results depending on when the environment check
 is triggered if something does filter them.

 @szepeviktor the `WP_ENV` approach is something used by Bedrock as far as
 I know, and although that's a good boilerplate, it's not indicative of the
 wider WP world. Personally I favor constants that are spelled out for
 clarity sake (that's my own personal take on it of course), but if there's
 strong reasons for changing this, then there's still a few days to make
 amendments here, but there's not been a lot of issues surfaced by the
 chosen naming scheme.

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


More information about the wp-trac mailing list