Evaling the $query in Class WP throws a notice
|Reported by:||simonwheatley||Owned by:|
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.
Change History (12)
- Component changed from General to Warnings/Notices
- Owner anonymous deleted
- Keywords needs-patch added; has-patch needs-testing removed