Created
October 24, 2023 21:38
-
-
Save pixelbart/2c4343fa4871b13b9973303c38631cc7 to your computer and use it in GitHub Desktop.
Must-use WordPress plugin to suppress PHP 8+ error reporting for warnings and deprecations
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
<?php | |
if (!function_exists('untrailingslashit') || !defined('WP_PLUGIN_DIR')) { | |
exit; | |
} | |
if (defined('WP_DEBUG') && WP_DEBUG === true) { | |
error_reporting(E_ALL & ~E_WARNING & ~E_DEPRECATED & ~E_USER_DEPRECATED & ~E_NOTICE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment