Skip to content

Instantly share code, notes, and snippets.

@davidmondok
Created October 23, 2023 11:37
Show Gist options
  • Save davidmondok/34c688bba63bb7610b2c0e4e858e7ff7 to your computer and use it in GitHub Desktop.
Save davidmondok/34c688bba63bb7610b2c0e4e858e7ff7 to your computer and use it in GitHub Desktop.
Patch for removing deprecated notices with WP_DEBUG
--- 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