Created
February 17, 2016 17:16
-
-
Save retlehs/a73d5c9cd04ebac951bb to your computer and use it in GitHub Desktop.
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
diff U3 a/wp/wp-includes/load.php b/wp/wp-includes/load.php | |
--- a/wp/wp-includes/load.php Tue Feb 02 19:38:52 2016 | |
+++ b/wp/wp-includes/load.php Tue Feb 02 19:58:21 2016 | |
@@ -285,7 +285,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 ); |
--- web/wp/wp-includes/load.php
+++ web/wp/wp-includes/load.php
@@ -457,7 +457,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 );
Copied @cfxd path fix + updated diff for WP v5.9.1
--- web/wp/wp-includes/load.php
+++ web/wp/wp-includes/load.php
@@ -569,7 +569,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 );
Line number updated for WP 6.4.1 & 6.3.1, possibly earlier versions.
If you get errors like Could not apply patch! Skipping. The error was: Cannot apply patch wordpress.patch
, make sure the patch is targeting roots/wordpress-no-content
and make your editor isn't converting tabs to spaces or otherwise changing the indentation in your patch file.
"wordpress-install-dir": "web/wp",
"patches": {
"roots/wordpress-no-content": {
"Prevent E_DEPRECATED error messages when debug is enabled": "wordpress.patch"
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cfxd thanks!