WordPress.org

Forums

Wp Ajax Tree
Bad jQuery Loading (1 post)

  1. Barry Carlyon
    Member
    Posted 3 years ago #

    if(wp_script_is('jquery','registered')) {
        $ver = $wp_scripts->registered['jquery']->ver;
        wp_deregister_script('jquery');
        wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/$ver/jquery.min.js"), false, $ver);
        if(!is_admin()) wp_enqueue_script('jquery');
      }

    should be

    if(wp_script_is('jquery','registered') && !is_admin()) {
        $ver = $wp_scripts->registered['jquery']->ver;
        wp_deregister_script('jquery');
        wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/$ver/jquery.min.js"), false, $ver);
        wp_enqueue_script('jquery');
      }

    http://wordpress.org/extend/plugins/wp-ajax-tree/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp Ajax Tree
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic