[wp-trac] [WordPress Trac] #14371: Allow user to specify error reporting level

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 14 07:56:34 UTC 2010


#14371: Allow user to specify error reporting level
------------------------------+---------------------------------------------
 Reporter:  wjm               |       Owner:                 
     Type:  enhancement       |      Status:  new            
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Warnings/Notices  |     Version:  3.0            
 Severity:  normal            |    Keywords:  has-patch      
------------------------------+---------------------------------------------

Comment(by hakre):

 Each time wordpress is loaded (done by including load.php)
 {{{wp_debug_mode()}}} will be called. In any case, WP_DEBUG being true or
 false, the configured error_reporting() setting will be overwritten.

 There is no method until now to prevent this - as reported in this ticket.
 This is still teh case.

 But it should be much easier to circumvent that shortcomming.

 I suggest to introduce WP_DEBUG being 'CONFIG' (a string) to leave over
 the configuration to the system settings. I'll add a patch to illustrate
 that.

 It then possible to use the own error_reporting setting directive(s) in
 wp-config.php or inside the php.ini and to  signal wordpress core to not
 bother with stuff.

 My patch does not reflect all the places which check for WP_DEBUG for any
 type and not bool in specific so far.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14371#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list