[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:43:04 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 | Resolution:
Keywords: needs-patch servehappy | Focuses:
------------------------------------+------------------------------
Comment (by ocean90):
The default wp_die handler already checks for `did_action( 'admin_head' )`
to not print the opening tags and CSS in admin. But it still always prints
the closing tags which should probably only be done if `exit` is set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46910#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list