[wp-trac] [WordPress Trac] #24085: wpautop filter and shortcodes
WordPress Trac
noreply at wordpress.org
Tue Apr 16 06:59:30 UTC 2013
#24085: wpautop filter and shortcodes
--------------------------+------------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version: trunk
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by Looimaster):
@azoazz
Yes, I think that you are right. Let's take a look at more examples:
Will work:
{{{
[shortcode]<div><img src=""></div>
<div><img src=""></div>
<div><img src=""></div>[/shortcode]
}}}
Will not work:
{{{
[shortcode]
<div><img src=""></div>
<div><img src=""></div>
<div><img src=""></div>
[/shortcode]
}}}
Will work:
{{{
[tabs][tab title="abc"][tab title="def"][/tabs]
}}}
Will not work:
{{{
[tabs]
[tab title="abc"]
[tab title="def"]
[/tabs]
}}}
Generally, from what I noticed, it tries to put <p> everywhere it can and
they often appear before, after or inside <div> elements (they should
appear in DIV to wrap text but if div contains nested div then it's no
longer valid).
It looks like tough development task because wpautop is useful but on the
other hand it prevents some shortcodes from working unless they strip
additional tags.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24085#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list