[wp-trac] [WordPress Trac] #47058: Site Health: does not distinguish between production / staging / development sites

WordPress Trac noreply at wordpress.org
Tue Oct 20 16:21:27 UTC 2020


#47058: Site Health: does not distinguish between production / staging /
development sites
------------------------------+-----------------------------
 Reporter:  DavidAnderson     |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.6
Component:  Site Health       |     Version:  5.2
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

 In [changeset:"49237" 49237]:
 {{{
 #!CommitTicketReference repository="" revision="49237"
 Site Health: Introduce the `WP_Site_Health::is_development_environment()`
 method.

 This allows Site Health tests to check if the current environment type is
 set to `development` or `local`.

 Use the new method:
 * In HTTPS tests, instead of a hardcoded check for `localhost`.
 * In `WP_DEBUG` and `WP_DEBUG_DISPLAY` tests, to set the status to
 `recommended` instead of `critical`.

 Props dkotter, Clorith, DavidAnderson, joyously, knutsp, afragen,
 SergeyBiryukov.
 Fixes #47058.
 }}}

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


More information about the wp-trac mailing list