[wp-trac] [WordPress Trac] #6665: Evaling the $query in Class WP throws a notice

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 10 18:00:15 GMT 2008


#6665: Evaling the $query in Class WP throws a notice
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:  anonymous                          
     Type:  defect         |      Status:  new                                
 Priority:  normal         |   Milestone:  2.5.1                              
Component:  General        |     Version:                                     
 Severity:  normal         |    Keywords:  has-patch needs-testing 2nd-opinion
---------------------------+------------------------------------------------
 I've just turned on the WP_DEBUG (#5033), for more picky error handling
 and am making an effort to clean up my WP install to run with no errors of
 any kind (not even Notices).

 The evaling of $query in the Class WP throws a Notice as all indexes in
 $matches are not always returned by the above preg_match. How about
 suppressing errors in that eval (see attached patch,
 query_error_suppress.patch)? If suppressing errors is not preferred, how
 about lowering the error_handling at that point to ignore Notices (see
 attached patch, query_notice_ignore.patch)?

 I prefer ignoring Notices temporarily, as it allows other errors to be
 caught and logged.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6665>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list