Created
October 23, 2023 11:37
-
-
Save davidmondok/34c688bba63bb7610b2c0e4e858e7ff7 to your computer and use it in GitHub Desktop.
Patch for removing deprecated notices with WP_DEBUG
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
--- a/web/wp/wp-includes/load.php | |
+++ b/web/wp/wp-includes/load.php | |
@@ -569,7 +569,7 @@ | |
} | |
if ( WP_DEBUG ) { | |
- error_reporting( E_ALL ); | |
+ error_reporting( E_ALL & ~E_DEPRECATED ); | |
if ( WP_DEBUG_DISPLAY ) { | |
ini_set( 'display_errors', 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment