Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save charlesbatista/1c3443a1e80c61dc7325cb8e2a117d9c to your computer and use it in GitHub Desktop.
Save charlesbatista/1c3443a1e80c61dc7325cb8e2a117d9c to your computer and use it in GitHub Desktop.
How to prevent WordPress from logging DEPRECATED errros on debug.log
1. Open the "load.php" file on "wp-includes" directory.
2. Find the line 572 and change:
From: error_reporting(E_ALL);
To: error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT);
3. If the WordPress is updated in the future, you must to change the line again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment