Just don’t set WP_DEBUG
to TRUE
. The error level is set in wp_debug_mode()
, which is called in wp-settings.php
before any plugins are loaded. If you leave the default values WordPress will set it to:
error_reporting(
E_CORE_ERROR |
E_CORE_WARNING |
E_COMPILE_ERROR |
E_ERROR |
E_WARNING |
E_PARSE |
E_USER_ERROR |
E_USER_WARNING |
E_RECOVERABLE_ERROR
);
But you should keep strict standard messages on, because in some cases they advance to real errors in later PHP versions, so it is better to fix them early.