WordPress.org

Ready to get started?Download WordPress

Forums

Really simple Facebook Twitter share buttons
Plugin breaks built-in shortcode escape mechanism (1 post)

  1. Graham Stoney
    Member
    Posted 1 year ago #

    This is an obscure one, but it's causing me grief. WordPress has a built-in mechanism for escaping shortcodes in a post where you want to say something like: "Use the [gallery] shortcode to create a gallery".

    Since WordPress will normally interpret the shortcode, you need to escape it in the post editor by doubling the brackets so it reads: "Use the gallery shortcode to create a gallery". Here's the trac entry that added this feature.

    Unfortunately Really Simple Facebook Twitter share buttons version 2.6 breaks this mechanism, so WordPress will still interpret escaped shortcodes. I'm guessing it's a bug in the_content filter really_simple_share, which calls do_shortcode on $the_content. I suspect this is causing escaped shortcodes which have already been stripped of the second bracket pair to be interpreted. Is this call really necessary?

    Cheers,
    Graham

    http://wordpress.org/extend/plugins/really-simple-facebook-twitter-share-buttons/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic