Title: [Plugin: J Shortcodes] Hard coding to jQuery 1.4.4&#8230;.why??
Last modified: August 20, 2016

---

# [Plugin: J Shortcodes] Hard coding to jQuery 1.4.4….why??

 *  [Yaron Guez](https://wordpress.org/support/users/yguez/)
 * (@yguez)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/)
 * This plugin de-registers the jQuery script alias and then re-registers it to 
   Google CDN, using the wrong version. This is bad! If you want to load a specific
   version of jQuery for your plugin, just load it for your plugin. Don’t break 
   every other use of the jQuery alias across the site.
 * [http://wordpress.org/extend/plugins/j-shortcodes/](http://wordpress.org/extend/plugins/j-shortcodes/)

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

 *  [anielsen](https://wordpress.org/support/users/anielsen/)
 * (@anielsen)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942627)
 * I second this, 1.4.4 isn’t even close to being current.
 * Couldn’t you just use [http://code.jquery.com/jquery.min.js](http://code.jquery.com/jquery.min.js)
   so that it will always be the latest version of jQuery?
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942645)
 * I third that. Better even to just default to the current version installed with
   WP.
 * If you need a minimum version of jQuery, check if the WP jquery version complies,
   if not – AND ONLY IF NOT – load the required version in another way.
 *  [ssiddiqi1](https://wordpress.org/support/users/ssiddiqi1/)
 * (@ssiddiqi1)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942646)
 * It is not the best solution, but Comment out following code from line 189-194
   in j-shortcodes.php. It works and load WordPress 3.5.1 default jquery, instead
   of hardcoded ancient 1.4.4 which creates conflicts.
 *     ```
       $jquery_version      = "1.4.4";
             $jquery_ui_version   = "1.8.9";
   
             wp_deregister_script ('jquery');             // using wp_deregister_script() to disable the version that comes packaged with WordPress
             wp_register_script   ('jquery',           "http://ajax.googleapis.com/ajax/libs/jquery/{$jquery_version}/jquery.min.js");         // using wp_register_script() to register updated libraries (this example uses the CDN from Google but you can use any other CDN or host the scripts yourself)
             wp_enqueue_script    ('jquery');          // using wp_enqueue_script() to load the updated libraries
       ```
   
 * Change to:
 *     ```
       // $jquery_version      = "1.4.4";
            // $jquery_ui_version   = "1.8.9";
   
            // wp_deregister_script ('jquery');             // using wp_deregister_script() to disable the version that comes packaged with WordPress
           //  wp_register_script   ('jquery',           "http://ajax.googleapis.com/ajax/libs/jquery/{$jquery_version}/jquery.min.js");         // using wp_register_script() to register updated libraries (this example uses the CDN from Google but you can use any other CDN or host the scripts yourself)
           //  wp_enqueue_script    ('jquery');          // using wp_enqueue_script() to load the updated libraries
       ```
   
 *  [Juliette Reinders Folmer](https://wordpress.org/support/users/jrf/)
 * (@jrf)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942647)
 * If you do so, then don’t forget to also comment out the three lines after the
   if statement just below it:
 *     ```
       /*         wp_deregister_script ('jquery-ui-core');
                wp_deregister_script ('jquery-ui-tabs');
   
                wp_register_script   ('jquery-ui-core',   "http://ajax.googleapis.com/ajax/libs/jqueryui/{$jquery_ui_version}/jquery-ui.min.js");
       */
       ```
   
 *  [ssiddiqi1](https://wordpress.org/support/users/ssiddiqi1/)
 * (@ssiddiqi1)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942648)
 * [@jrf](https://wordpress.org/support/users/jrf/)
 * Actually I did that… sorry I overlooked to post that here. Thanks for correction.

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

The topic ‘[Plugin: J Shortcodes] Hard coding to jQuery 1.4.4….why??’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/j-shortcodes.svg)
 * [J Shortcodes](https://wordpress.org/plugins/j-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/j-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/j-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/j-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/j-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/j-shortcodes/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [ssiddiqi1](https://wordpress.org/support/users/ssiddiqi1/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-j-shortcodes-hard-coding-to-jquery-144why/#post-2942648)
 * Status: not resolved