Skip to content

Commit

Permalink
v2.1.4 tagged stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramoonus committed May 15, 2015
1 parent e93832e commit e8fc659
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
16 changes: 3 additions & 13 deletions jquery-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@
Plugin Name: jQuery Updater
Plugin URI: http://www.ramoonus.nl/wordpress/jquery-updater/
Description: This plugin updates jQuery to the latest stable version.
Version: 2.1.3
Version: 2.1.4
Author: Ramoonus
Author URI: http://www.ramoonus.nl/
License: GPL3
*/

// Enable Localisation
load_plugin_textdomain('jquery_updater', false, basename( dirname( __FILE__ ) ) . '/languages' );

// Register main function
function rw_jquery_updater() {

// jQuery
// Deregister core jQuery
wp_deregister_script('jquery');
// Register
wp_enqueue_script('jquery', plugins_url('/js/jquery-2.1.3.min.js', __FILE__), false, '2.1.3');
wp_enqueue_script('jquery', plugins_url('/js/jquery-2.1.4.min.js', __FILE__), false, '2.1.4');

// jQuery Migrate
// @since 2.0.0
Expand All @@ -29,11 +26,4 @@ function rw_jquery_updater() {
wp_enqueue_script('jquery-migrate', plugins_url('/js/jquery-migrate-1.2.1.min.js', __FILE__), array('jquery'), '1.2.1'); // require jquery, as loaded above
}
// Front-End
add_action('wp_enqueue_scripts', 'rw_jquery_updater');
// Back-End
// @since 2.1.3
//add_action('admin_enqueue_scripts', 'rw_jquery_updater');
//add_action('login_enqueue_scripts', 'rw_jquery_updater');


// Admin Screen
add_action('wp_enqueue_scripts', 'rw_jquery_updater');
Loading

0 comments on commit e8fc659

Please sign in to comment.