[wp-trac] [WordPress Trac] #15190: _default_wp_die_handler should accept pretty HTML
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 8 19:25:41 UTC 2011
#15190: _default_wp_die_handler should accept pretty HTML
------------------------------+-------------------------
Reporter: 5ubliminal | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Warnings/Notices | Version: 3.0.1
Severity: normal | Resolution: worksforme
Keywords: |
------------------------------+-------------------------
Changes (by ocean90):
* keywords: reporter-feedback close =>
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Replying to [comment:1 nacin]:
> I don't really see a point to this.
{{{_default_wp_die_handler()}}} will echo the message in ''<p>'' tags. If
you have a message with some other HTML tags:
{{{
wp_die("<div><ul><li>test</li></ul></div>");
}}}
the output will be not valid:
{{{
<p><div><ul><li>test</li></ul></div></p>
}}}
[[br]]
But there is a solution to prevent this,
[http://core.trac.wordpress.org/browser/tags/3.0.4/wp-
includes/functions.php#L2661 you can define your own wp_die handler].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15190#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list