Created
August 11, 2023 17:08
-
-
Save charlesbatista/1c3443a1e80c61dc7325cb8e2a117d9c to your computer and use it in GitHub Desktop.
How to prevent WordPress from logging DEPRECATED errros on debug.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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