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

WordPress Trac noreply at wordpress.org
Tue Sep 20 02:23:03 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:
------------------------------+----------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54239" 54239]:
 {{{
 #!CommitTicketReference repository="" revision="54239"
 Bootstrap/Load: Confirm the value of `WP_ENVIRONMENT_TYPE` before using.

 This adjusts the check for the presence of the `WP_ENVIRONMENT_TYPE`
 constant to also confirm it is set to a non-empty value before using.

 Props dd32, khokansardar, ramon-fincken.
 Fixes #55741.
 }}}

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


More information about the wp-trac mailing list