[wp-trac] [WordPress Trac] #46910: Allow wp_die to called after html has started output
WordPress Trac
noreply at wordpress.org
Sat Apr 13 14:36:59 UTC 2019
#46910: Allow wp_die to called after html has started output
--------------------------+------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: needs-patch servehappy
Focuses: |
--------------------------+------------------------------------
Currently if wp_die is called in either front end or in the cms, after
html has started to render html, it makes an extremely broken looking
page. This is because the default wp_die will output another html / body
tag and css.
The wp_die function could somehow detect that html render had started, by
saying checking an action has been run or a constraint was set, then
instead of outputting the html start tags and would instead just output
Javascript. This Javascript could display either an overlay dialog or even
an a pure Javascript based alert displaying the message.
This feature would be specially useful for the fatal error protection
feature in WordPress 5.2.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46910>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list