[wp-trac] [WordPress Trac] #55741: Check the value of WP_ENVIRONMENT_TYPE before using it

WordPress Trac noreply at wordpress.org
Mon Sep 19 20:02:25 UTC 2022


#55741: Check the value of WP_ENVIRONMENT_TYPE before using it
------------------------------+------------------------
 Reporter:  dd32              |       Owner:  desrosj
     Type:  enhancement       |      Status:  reviewing
 Priority:  low               |   Milestone:  6.1
Component:  Bootstrap/Load    |     Version:
 Severity:  trivial           |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+------------------------
Changes (by desrosj):

 * keywords:  2nd-opinion has-patch => has-patch commit
 * owner:  (none) => desrosj
 * status:  new => reviewing


Comment:

 Thanks for the patches!

 While there is some potential for consolidation and flexibility through
 new filters, I think that deserves a broader discussion.

 I think that [attachment:"55741.diff"] is preferred here as it simply
 fixes the specific issue being reported without additional refactoring.

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


More information about the wp-trac mailing list