﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
14371,Allow user to specify error reporting level,wjm,,"I have noticed that there is little control over the error reporting level that you can set,

you can set error_reporting() in your wp-config.php file, but it will be overriden in load.php (called by wp-settings.php) by wp_debug_mode();

this introduces a WP_ERROR_REPORTING constant, that will be checked and if set, error reporting will be set to that value.
either in WP_DEBUG mode or not.

so for example the, in the wp-config.php of the production installation, you use it like this,

{{{
define( 'WP_ERROR_REPORTING', ( E_CORE_ERROR | E_COMPILE_ERROR | E_ERROR | E_PARSE | E_USER_ERROR ) );
}}}

And it will throw no warning messages at all.

This is also useful in conjunction with WP_DEBUG and WP_DEBUG_LOG, as you will be able to specify the error level and also log any errors.",enhancement,closed,normal,,Warnings/Notices,3.0,normal,worksforme,has-patch,
