[wp-trac] [WordPress Trac] #55741: Check the value of WP_ENVIRONMENT_TYPE before using it
WordPress Trac
noreply at wordpress.org
Tue Sep 20 09:41:37 UTC 2022
#55741: Check the value of WP_ENVIRONMENT_TYPE before using it
------------------------------+----------------------
Reporter: dd32 | Owner: desrosj
Type: enhancement | Status: closed
Priority: low | Milestone: 6.1
Component: Bootstrap/Load | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------
Comment (by ramon fincken):
Yes this will suffice @desrosj
I went perhaps a bit too far introducing the filter.
Will still love if the if/else/check was just 1 central function as having
duplicate code will/might lead to issues later on.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55741#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list