jQuery Updater - Version 1.0.0

Version Description

Its recommended to flush the cache after upgrading.

Download this release

Release Info

Developer Ramoonus
Plugin Icon wp plugin jQuery Updater
Version 1.0.0
Comparing to
See all releases

Version 1.0.0

Files changed (2) hide show
  1. jquery-updater.php +33 -0
  2. readme.txt +30 -0
jquery-updater.php ADDED
@@ -0,0 +1,33 @@
1
+ <?php
2
+ /*
3
+ Plugin Name: jQuery and jQuery UI updater
4
+ Plugin URI: http://www.ramoonus.nl/wordpress/jquery-updater/
5
+ Description: This plugin should only be used for development purposes, this plugin updates jQuery and jQuery UI to the latest stable version.
6
+ Version: 1.0.0
7
+ Author: Ramoonus
8
+ Author URI: http://www.ramoonus.nl
9
+ License: GPL2
10
+ */
11
+ ?>
12
+ <?php
13
+ // Update jQuery
14
+ function rw_jquery_update() {
15
+ if (!is_admin()) { // when not in admin screen
16
+ wp_deregister_script('jquery'); // deregister
17
+ // wp_register_script( $handle, $src, $deps, $ver, $in_footer );
18
+ wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js', false, '1.5.2'); // re register
19
+ wp_enqueue_script('jquery'); // load
20
+ }
21
+ }
22
+ add_action('init', 'rw_jquery_update');
23
+
24
+ // Update jQuery UI
25
+ function rw_jquery_ui_update() { // when not in admin screen
26
+ if (!is_admin()) { // deregister
27
+ wp_deregister_script('jquery-ui');
28
+ wp_register_script('jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js', false, '1.8.11'); // re register
29
+ wp_enqueue_script('jquery-ui'); // load
30
+ }
31
+ }
32
+ add_action('init', 'rw_jquery_ui_update');
33
+ ?>
readme.txt ADDED
@@ -0,0 +1,30 @@
1
+ === Plugin Name ===
2
+ Contributors: ramoonus
3
+ Donate link: http://www.ramoonus.nl
4
+ Tags: jquery
5
+ Requires at least: 3.0.0
6
+ Tested up to: 3.2
7
+ Stable tag: 1.0
8
+
9
+ This plugin should only be used for development purposes, this plugin updates jQuery and jQuery UI to the latest stable version.
10
+
11
+ == Description ==
12
+
13
+ This plugin should only be used for development purposes, this plugin updates jQuery and jQuery UI to the latest stable version.
14
+
15
+ == Installation ==
16
+ 1. Upload `jquery-updater.php` to the `/wp-content/plugins/` directory
17
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
18
+
19
+ == Frequently Asked Questions ==
20
+ None at this moment.
21
+
22
+ == Upgrade Notice ==
23
+ Its recommended to flush the cache after upgrading.
24
+
25
+ == Screenshots ==
26
+ Not relevant.
27
+
28
+ == Changelog ==
29
+ = 1.0 =
30
+ * First version, uses jQuery 1.5.2 on Googles CDN