WordPress.org

Ready to get started?Download WordPress

Forums

Modal Dialog
Fix For Do Shortcode (1 post)

  1. brokenflipside
    Member
    Posted 10 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by brokenflipside
  • This topic is not resolved
  • WordPress version: 3.6