Ticket #6665: query_notice_ignore.patch
File query_notice_ignore.patch, 766 bytes (added by , 17 years ago) |
---|
-
wp-includes/classes.php
old new 105 105 $query = preg_replace("!^.+\?!", '', $query); 106 106 107 107 // Substitute the substring matches into the query. 108 // If we're running in debug mode, temporarily lower our error handling from an assumed level of E_ALL 109 if ( defined('WP_DEBUG') && WP_DEBUG == true ) 110 $old_error_reporting = error_reporting( E_ALL ^ E_NOTICE ); 108 111 eval("\$query = \"$query\";"); 112 // Maybe reinstate the error handling at the old level 113 if ( defined( WP_DEBUG ) && WP_DEBUG == true ) 114 error_reporting( $old_error_level ); 109 115 $this->matched_query = $query; 110 116 111 117 // Parse the query.