[wp-trac] [WordPress Trac] #6984: wpautop() formats the the
contents of shortcodes
WordPress Trac
wp-trac at lists.automattic.com
Sat May 17 10:34:02 GMT 2008
#6984: wpautop() formats the the contents of shortcodes
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.6
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
`wpautop()`, the bane of my existence as a plugin developer, is at it
again.
Here's an example of some PHP wrapped in a valid shortcode in a post of
mine:
{{{
[code lang="php"]$text = str_replace( array('<p><p>', '</p></p>'),
array('<p>', '</p>'), $text);[/code]
}}}
The content that gets passed to my shortcode function is this:
{{{
$text = str_replace( array('
<p>', '</p>
</p>
<p>'), array('
<p>', '</p>
<p>'), $text);
}}}
Expected result: it shouldn't touch the insides of valid shortcodes (like
adding line breaks or anything as it is doing now).
--
Ticket URL: <http://trac.wordpress.org/ticket/6984>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list