[wp-trac] [WordPress Trac] #59282: WordPress should register custom error and exception handlers
WordPress Trac
noreply at wordpress.org
Tue Sep 5 11:23:40 UTC 2023
#59282: WordPress should register custom error and exception handlers
-----------------------------+------------------------------
Reporter: bjorsch | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by ayeshrajans):
I like the idea of sanitizing HTML at the error/exception handler level.
Like you mentioned in the description, sanitizing HTML can be annoying
when the exceptions end up in log files, error trackers, etc.
A couple things I'm concerned about are how external exception/error
handlers can "handoff" errors, and the somewhat uneasy feeling as we
overload the INI values.
Code in PR looks good to me, although I would rather optimize it for the
happy path (for example with early `return` statements), so it's not
deeply nested or chains `if/elseif`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59282#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list