Use Google Libraries - Version 1.6.2.1

Version Description

  • Bypass functionality when running under 4.2+ until next version to avoid breaking sites.
Download this release

Release Info

Developer jczorkmid
Plugin Icon wp plugin Use Google Libraries
Version 1.6.2.1
Comparing to
See all releases

Code changes from version 1.6.2 to 1.6.2.1

Files changed (2) hide show
  1. README.txt +8 -4
  2. use-google-libraries.php +6 -2
README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jczorkmid
3
  Donate link: http://jasonpenney.net/donate
4
  Tags: javascript, performance, CDN, Google, jQuery, Prototype, MooTools, Dojo, Google AJAX Libraries API, YSlow, Page Speed
5
  Requires at least: 3.4
6
- Tested up to: 4.0
7
- Stable tag: 1.6.2
8
 
9
  Allows your site to use common javascript libraries from Google's AJAX
10
  Libraries CDN, rather than from WordPress's own copies.
@@ -126,6 +126,10 @@ using K2.
126
 
127
  == Changelog ==
128
 
 
 
 
 
129
  = 1.6.2 =
130
 
131
  + added some missing jQuery UI modules (hopefully fixes issues from support
@@ -242,9 +246,9 @@ from [Peter Wilson](http://peterwilson.cc/).
242
 
243
  == Upgrade Notice ==
244
 
245
- = 1.6.2 =
246
 
247
- Fixes missing registrations. Upgrade immediately!
248
 
249
  == A Request ==
250
 
3
  Donate link: http://jasonpenney.net/donate
4
  Tags: javascript, performance, CDN, Google, jQuery, Prototype, MooTools, Dojo, Google AJAX Libraries API, YSlow, Page Speed
5
  Requires at least: 3.4
6
+ Tested up to: 4.1.3
7
+ Stable tag: 1.6.2.1
8
 
9
  Allows your site to use common javascript libraries from Google's AJAX
10
  Libraries CDN, rather than from WordPress's own copies.
126
 
127
  == Changelog ==
128
 
129
+ = 1.6.2.1 =
130
+
131
+ + Bypass functionality when running under 4.2+ until next version to avoid breaking sites.
132
+
133
  = 1.6.2 =
134
 
135
  + added some missing jQuery UI modules (hopefully fixes issues from support
246
 
247
  == Upgrade Notice ==
248
 
249
+ = 1.6.2.1 =
250
 
251
+ Bypass UGL in unsupported versions of WordPress (update now, and UGL will start working again when it's ready).
252
 
253
  == A Request ==
254
 
use-google-libraries.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Use Google Libraries
4
  Plugin URI: http://jasonpenney.net/wordpress-plugins/use-google-libraries/
5
  Description: Allows your site to use common javascript libraries from Google's AJAX Libraries CDN, rather than from WordPress's own copies.
6
- Version: 1.6.2
7
  Author: Jason Penney
8
  Author URI: http://jasonpenney.net/
9
  Text Domain: use-google-libraries
@@ -34,7 +34,7 @@ if ( ! class_exists( 'JCP_UseGoogleLibraries' ) ) {
34
 
35
  protected static $instance;
36
  protected static $plugin_file = __FILE__;
37
- protected static $version = '1.6.2';
38
  protected static $noconflict_inject = "<script type='text/javascript'>try{jQuery.noConflict();}catch(e){};</script>\n";
39
 
40
  public static function get_instance() {
@@ -226,6 +226,10 @@ if ( ! class_exists( 'JCP_UseGoogleLibraries' ) ) {
226
  }
227
 
228
  static function configure_plugin() {
 
 
 
 
229
  add_action(
230
  'wp_default_scripts',
231
  array(
3
  Plugin Name: Use Google Libraries
4
  Plugin URI: http://jasonpenney.net/wordpress-plugins/use-google-libraries/
5
  Description: Allows your site to use common javascript libraries from Google's AJAX Libraries CDN, rather than from WordPress's own copies.
6
+ Version: 1.6.2.1
7
  Author: Jason Penney
8
  Author URI: http://jasonpenney.net/
9
  Text Domain: use-google-libraries
34
 
35
  protected static $instance;
36
  protected static $plugin_file = __FILE__;
37
+ protected static $version = '1.6.2.1';
38
  protected static $noconflict_inject = "<script type='text/javascript'>try{jQuery.noConflict();}catch(e){};</script>\n";
39
 
40
  public static function get_instance() {
226
  }
227
 
228
  static function configure_plugin() {
229
+ if ( version_compare( get_bloginfo( 'version' ), '4.2', '>=') ) {
230
+ self::debug( 'Not yet qualified with this version of WordPress. Bypassing UGL.' );
231
+ return;
232
+ }
233
  add_action(
234
  'wp_default_scripts',
235
  array(