Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jordantrainor

    (@jordantrainor)

    I just changed the enqueue to bring it in the footer to solve the issue.

    function wpfp_add_js_script() {
    	if (!wpfp_get_option('dont_load_js_file'))
    		wp_enqueue_script( "wp-favroite-posts", WPFP_PATH . "/wpfp.js", array( 'jquery' ), '', true );
    }
    Thread Starter jordantrainor

    (@jordantrainor)

    I also notice it breaks the way search and filter pro loads pages with shortcodes.

    angryprogrammer

    (@angryprogrammer)

    Seems it has to do with the plugin using .live() in wpfp.js. It should be updated to use .on() instead for jQuery 1.7 or higher.

    Christophe B

    (@christophe-b)

    same problem

    Thread Starter jordantrainor

    (@jordantrainor)

    Well spotted angryprogrammer.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Break JavaScript’ is closed to new replies.