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

WordPress Trac noreply at wordpress.org
Mon Aug 5 08:45:53 UTC 2019


#47580: Prevent output of invalid HTML in `_default_wp_die_handler()`
----------------------------+-----------------------------
 Reporter:  jeremyfelt      |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  accessibility
----------------------------+-----------------------------

Comment (by afercia):

 One more example of invalid HTML:

 https://core.trac.wordpress.org/browser/trunk/src/index.php?rev=45649&marks=33-55#L32

 The passed string avoids to set the initial opening tag `<p>`, which is
 smart, but then forgets to not pass the last closing tag `</p>`. Actual
 result in the HTML: `</p></p>`.

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


More information about the wp-trac mailing list