WordPress.org

Support

Support » Plugins and Hacks » Fix For Do Shortcode

Fix For Do Shortcode

  • mgratch

    @brokenflipside

    stripslashes(do_shortcode($options['dialogtext']));

    You have the stripslashes in the wrong place, this is probably why contact form 7 doesn’t work, I know it fixed my gravity forms shortcode problem.

    do_shortcode(stripslashes($options['dialogtext']));

    As well you are using wp_specialchars (which is deprecated) you should be using esc_html

    Finally you should register your scripts before enqueuing them so it gives other developers a chance to deregister them, i.e. the fancy box script as this is called by many plugins and can cause conflicts. <– this last one is my 2 cents. Thanks!

    http://wordpress.org/plugins/modal-dialog/

  • The topic ‘Fix For Do Shortcode’ is closed to new replies.