[wp-trac] [WordPress Trac] #45933: WSODs protection returns incorrect content type
WordPress Trac
noreply at wordpress.org
Wed Jan 16 15:20:09 UTC 2019
#45933: WSODs protection returns incorrect content type
----------------------------------+------------------------
Reporter: spacedmonkey | Owner: flixos90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.1
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: servehappy has-patch | Focuses: multisite
----------------------------------+------------------------
Comment (by flixos90):
In [changeset:"44624" 44624]:
{{{
#!CommitTicketReference repository="" revision="44624"
Bootstrap/Load: Fix workaround to display admin link in PHP error template
by introducing `$link_url` and `$link_text` arguments to `wp_die()`.
This changeset removes the hack that was used before to display more
complex HTML markup than a simple message in the default PHP error
template via `wp_die()`. By removing HTML markup from the arguments passed
to `wp_die()` it furthermore paves the way for supporting other content
types than the default.
The message and arguments can be modified with new `wp_php_error_message`
and `wp_php_error_args` filters respectively.
Furthermore this changeset fixes a few issues of functions not existing
which could potentially have caused fatal errors when executed early in
the WordPress bootstrap process.
Props flixos90, spacedmonkey.
See #45933, #44458.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45933#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list