[wp-trac] [WordPress Trac] #50645: Raw HTML displayed in snackbar message.
WordPress Trac
noreply at wordpress.org
Mon Jul 13 17:37:13 UTC 2020
#50645: Raw HTML displayed in snackbar message.
-------------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch close | Focuses: rest-api
-------------------------------+------------------------------
Comment (by azaozz):
Yeah, this is the standard "server has crashed" error message coming from
WP_Fatal_Error_Handler: https://core.trac.wordpress.org/browser/trunk/src
/wp-includes/class-wp-fatal-error-handler.php#L182.
Wondering if it would make sense to put the help link URL and text in the
WP_Error data instead of concatenating it with the error message. Then it
can be rendered properly before displaying both through the API and direct
output.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50645#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list