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

WordPress Trac noreply at wordpress.org
Tue Feb 17 16:37:40 UTC 2015


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

Comment (by aaroncampbell):

 I put together a few tests in [attachment:14050-tests.diff] to showcase
 the various issues. Without the patch from @lkraav ([attachment:t14050
 -shortcode-unautop-upgrade.diff]) three of the four tests fail, although
 the fourth is very minor and the test could probably be amended to
 consider it a pass (but these are set to "best case scenario). With the
 patch, the same three tests fail in the same ways.

 Are there other situations, not covered by the tests I just added here,
 that the patch covers?

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


More information about the wp-trac mailing list