[wp-trac] [WordPress Trac] #47580: Prevent output of invalid HTML in `_default_wp_die_handler()`

WordPress Trac noreply at wordpress.org
Thu Aug 29 07:52:53 UTC 2019


#47580: Prevent output of invalid HTML in `_default_wp_die_handler()`
--------------------------------------+----------------------------
 Reporter:  jeremyfelt                |       Owner:  audrasjb
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  Administration            |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch needs-dev-note  |     Focuses:  accessibility
--------------------------------------+----------------------------
Changes (by mikeschroder):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45909" 45909]:
 {{{
 #!CommitTicketReference repository="" revision="45909"
 Administration: Output valid HTML when `wp_die()` is called.

 To better support HTML and string calls to `wp_die()` without
 outputting invalid HTML, wraps error messages in `<div>` rather than
 `<p>`.

 Adds `.wp-die-message` CSS class for styling.

 Props dinhtungdu, jeremyfelt, audrasjb, SergeyBiryukov, afercia, audrasjb,
 noisysocks.
 Fixes #47580.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47580#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list