[wp-trac] [WordPress Trac] #14050: shortcode_unautop() should also remove the <br /> added after shortcodes

WordPress Trac noreply at wordpress.org
Sat Nov 8 22:57:59 UTC 2014


#14050: shortcode_unautop() should also remove the <br /> added after shortcodes
------------------------------------------------+--------------------------
 Reporter:  aaroncampbell                       |       Owner:
     Type:  defect (bug)                        |      Status:  new
 Priority:  normal                              |   Milestone:  Future
Component:  Formatting                          |  Release
 Severity:  normal                              |     Version:  3.0
 Keywords:  dev-feedback needs-refresh wpautop  |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------

Comment (by aaroncampbell):

 Now that the unit test is removed, I kind of like the idea of reworking it
 to trim the content before comparing anyway. If the function is ever
 reworked to not leave behind a newline, the test would fail, but since
 we're dealing with HTML we really shouldn't care if there's an extra
 newline.

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


More information about the wp-trac mailing list