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

WordPress Trac noreply at wordpress.org
Thu Sep 3 18:21:29 UTC 2020


#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:                |     Focuses:
--------------------------+------------------------------

Comment (by afragen):

 The site health error is about displaying errors to site visitors. The
 `WP_DEBUG_DISPLAY` constant is set to true as a default. Setting it to
 false removes this error.

 I do realize that in a development environment we should be encouraging
 the visibility of these errors for testing. We should be able to
 understand what this error means and its context.

 All that being said, giving the message some context with
 `wp_set_environment_type()` is probably a good thing.

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


More information about the wp-trac mailing list