wpautop() formats the the contents of shortcodes
|Reported by:||Viper007Bond||Owned by:|
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).
Change History (10)
- Milestone changed from 2.9 to Future Release
- Priority changed from normal to low
- Severity changed from normal to trivial