[wp-hackers] Problem with default filters
wp-hackers at nicolaskuttler.de
Wed May 26 14:46:14 UTC 2010
& isn't valid html. I would guess one of the two filters converts it to &, or maybe something else. You can certainly convert that back to & in your shortcode callback.
I see there's a shortcode_unautop filter which probably means that the other content filters don't care if they are inside a shortcode or not. Sounds like
might be good additions to the standard filters, depending on what precisely the filters do.
On Wed, May 26, 2010 at 10:46:15AM +0200, Frank Bueltge wrote:
> i have a problem with shortcodes in post and pages.
> The shortcode use strings with & and this will not read, when active the
> filters wptexturize and convert_chars.
> When i deactivate the filter, works fine - only when i deactivate the two
> remove_filter( 'the_content', 'wptexturize' );
> remove_filter( 'the_content', 'convert_chars' );
> maybe give it a solution for this or is this a bug in the filters?
> Thanks for reply or ideas.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
wp at nkuttler.de
More information about the wp-hackers