[wp-trac] [WordPress Trac] #14050: shortcode_unautop() should also remove the <br /> added after shortcodes
WordPress Trac
noreply at wordpress.org
Wed Feb 18 09:23:35 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 szepe.viktor):
1
Block-level HTML element generating shortcodes are differently unautop-d
from inline element generating ones.
2
In case of block-level element generating shortcodes you can use them in
each other on one line or on new lines.
{{{
[block1][block2]
content
[/block2][/block1]
}}}
{{{
[block1]
[block2]
content
[/block2]
[/block1]
}}}
3
https://gist.github.com/szepeviktor/5df48166063ecb66bdc0
becomes
https://gist.github.com/szepeviktor/4d105d8efbf5f035dc39
I usually get stray `</p>`-s:
{{{
[block class="bigpink"]
<ol>
<li>Mivel
}}}
{{{
<div class="bigpink"></p>
<ol>
<li>Mivel
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14050#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list