[wp-trac] [WordPress Trac] #22272: shortcode_unautop() Doesn't Account for Opening/Closing Shortcode tags each Being on Their Own Line
WordPress Trac
noreply at wordpress.org
Wed Oct 24 17:54:23 UTC 2012
#22272: shortcode_unautop() Doesn't Account for Opening/Closing Shortcode tags each
Being on Their Own Line
-----------------------------+--------------------------
Reporter: bonnerl | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Shortcodes
Version: 3.4.2 | Severity: normal
Keywords: |
-----------------------------+--------------------------
The shortcode_unautop function does not appear to account for when the
opening and closing shortcode tags are put on separate lines from the
paragraph they are surrounding.
For example: the following is after wpautop() adds the paragraph tags.
{{{
<p>[cool_shortcode]</p>
<p>A paragraph about something you should
know.</p><p>[/cool_shortcode]</p>
}}}
I would expect that shortcode_unautop would remove the paragraph tags from
around both the opening and the closing shortcode tags. Instead it treats
it all as if the entire thing were in one paragraph. Resulting in the
following code being output.
{{{
[cool_shortcode]</p>
<p>A paragraph about something you should know.</p><p>[/cool_shortcode]
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22272>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list