ClassicPress PetitionsClassicPress Petitions
This is a read-only archive. Post or comment on the live version of this page on our forums.

Show error notice in admin when debugging is enabled

11 months ago · Viktor Nagornyy

A lot of users, including developers, forget to disable WP_DEBUG after they finish troubleshooting. A simple error notice in admin would be a helpful reminder that debugging is enabled. We do that for all of our hosting customers. It's very helpful, reminds me to disable it frequently.

I've seen debug.log files in GBs in size because people forget to disable it for years.

+6 more

Good idea!

Alan Coggins

Yes, nice idea.

Laurence Bahiirwa

This is a small change that could increase Server performance as shared above.

A simple check for the constant and colored notice in admin bar or in the At a glance dashboard widget would make sense.

Alan has a similar implementation in a plugin he has made.