[wp-trac] [WordPress Trac] #54340: WP_LOCAL_DEV shouldn't be included in Site Health Info

WordPress Trac noreply at wordpress.org
Fri Nov 5 21:03:48 UTC 2021


#54340: WP_LOCAL_DEV shouldn't be included in Site Health Info
----------------------------------------+----------------------
 Reporter:  johnbillion                 |       Owner:  Clorith
     Type:  defect (bug)                |      Status:  closed
 Priority:  low                         |   Milestone:  5.9
Component:  Site Health                 |     Version:  5.2
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+----------------------
Changes (by Clorith):

 * owner:  (none) => Clorith
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52021" 52021]:
 {{{
 #!CommitTicketReference repository="" revision="52021"
 Site Health: Add the constant `WP_ENVIRONMENT_TYPE` for debug data.

 As a legacy from the old Health Check plugin, the constant `WP_LOCAL_DEV`
 was included in the debug data under the "WordPress Constants" section.
 This was incorrect, and has never been a constant used by core.

 Instead, that field is now replaced by `WP_ENVIRONMENT_TYPE`, which was
 introduced with WordPress 5.5, and is a much more appropriate value to
 provide in a debug scenario.

 Props johnbillion, bgoewert, sabbirshouvo.
 Fixes #54340.
 }}}

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


More information about the wp-trac mailing list