Skip to content

Instantly share code, notes, and snippets.

@BurningDog
Forked from retlehs/wordpress.patch
Last active May 15, 2018 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BurningDog/e90126e4001b22d80e988f84878ea756 to your computer and use it in GitHub Desktop.
Save BurningDog/e90126e4001b22d80e988f84878ea756 to your computer and use it in GitHub Desktop.
diff --git a/web/wp/wp-includes/load.php b/web/wp/wp-includes/load.php
index c7a46de..f52539e 100644
--- a/web/wp/wp-includes/load.php
+++ b/web/wp/wp-includes/load.php
@@ -318,7 +318,7 @@ function wp_debug_mode() {
}
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