[wp-trac] [WordPress Trac] #51230: WP_DEBUG is flagged when using the development environment type

WordPress Trac noreply at wordpress.org
Sun Aug 11 15:12:22 UTC 2024


#51230: WP_DEBUG is flagged when using the development environment type
----------------------------------------+------------------------------
 Reporter:  desrosj                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Site Health                 |     Version:  5.5
 Severity:  normal                      |  Resolution:
 Keywords:  good-first-bug needs-patch  |     Focuses:
----------------------------------------+------------------------------

Comment (by xaymup):

 Replying to [comment:4 desrosj]:
 > Adding `good-first-bug` to explore a few ways to add some additional
 context for `development` sites.

 I believe this issue has been resolved. After examining the source code in
 class-wp-site-health.php, I noticed a condition that sets the status to
 'recommended' rather than 'critical' in development environments:


 {{{
                                 // On development environments, set the
 status to recommended.
                                 if ( $this->is_development_environment() )
 {
                                         $result['status'] = 'recommended';
                                 }
 }}}

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


More information about the wp-trac mailing list