Skip to content

Instantly share code, notes, and snippets.

@retlehs
Created February 17, 2016 17:16
Show Gist options
  • Save retlehs/a73d5c9cd04ebac951bb to your computer and use it in GitHub Desktop.
Save retlehs/a73d5c9cd04ebac951bb to your computer and use it in GitHub Desktop.
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 );
@dalepgrant
Copy link

--- wp/wp-includes/load.php
+++ wp/wp-includes/load.php
@@ -582,7 +582,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.7.1. I've also dropped web/ from the path so the patch is picked up on the -p1 patch level, previously it would cycle through -p1, -p0 and then finally succeed on -p2.

Use composer update --verbose to give more info if you hit any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment