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

WordPress Trac noreply at wordpress.org
Fri Sep 11 00:09:08 UTC 2020


#47058: Site Health: does not distinguish between production / staging /
development sites
-------------------------------------+-----------------------
 Reporter:  DavidAnderson            |       Owner:  (none)
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  5.6
Component:  Site Health              |     Version:  5.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 Looking at [attachment:"47058.diff"], I'm not sure we should check for the
 `localhost` URL specifically, as a local test site can have pretty much
 any URL, e.g. `http://develop.wordpress.test/`.

 Just checking for `in_array( wp_environment_type(), array( 'development',
 'local' ), true )` seems enough.

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


More information about the wp-trac mailing list