[wp-trac] Re: [WordPress Trac] #5473: Suppress DB errors unless WP_DEBUG is true

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 16 20:23:42 GMT 2007


#5473: Suppress DB errors unless WP_DEBUG is true
-------------------------------------------------+--------------------------
 Reporter:  filosofo                             |        Owner:  anonymous
     Type:  defect                               |       Status:  new      
 Priority:  normal                               |    Milestone:  2.4      
Component:  General                              |      Version:  2.4      
 Severity:  normal                               |   Resolution:           
 Keywords:  show_errors wpdb db mysql has-patch  |  
-------------------------------------------------+--------------------------
Comment (by ryan):

 When doing hide/show pair, this patch restores the show state to what it
 was prior to hiding.  This way we don't have to check WP_DEBUG everywhere.

 Patch also does an error_log() inside print_error() so that the error info
 is always available in the error log.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5473#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list