Quotes in shortcode attributes – wptexturize filter interference
-
Hi there,
a very handy plugin this is.
I have issues with adding parameters to the shortcodes.
So for example when I do this: [shortcode]sc_events attribute=”1″[/shortcode]
I get strange quotes that would not work if used by copy & paste. Because I am creating a documentation for the usage of all available shortcodes in a site, I need to fix this.
I just added this to the plugin code and now it does not run the filer wptexturize which cause the quotes to change.//##### Remove filter that messes with quotes add_filter( 'no_texturize_shortcodes', 'shortcodes_to_exempt_from_wptexturize' ); function shortcodes_to_exempt_from_wptexturize( $shortcodes ) { $shortcodes[] = 'shortcode'; return $shortcodes; }Maybe this helps someone.
The topic ‘Quotes in shortcode attributes – wptexturize filter interference’ is closed to new replies.