Use Google Libraries - Version 1.6.2

Version Description

  • added some missing jQuery UI modules (hopefully fixes issues from support forums I couldn't reproduce previously).
Download this release

Release Info

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

Code changes from version 1.6.1 to 1.6.2

README.md CHANGED
@@ -11,8 +11,8 @@ See the [README.txt][1.0] file, or one of the links below:
11
  - [Issue Tracker][1.4.1]
12
  - [Forum][1.4.2]
13
  - Releases
14
- - __[1.5.2][1.5]__ [![Build Status](https://travis-ci.org/jpenney/use-google-libraries.png?branch=master)](https://travis-ci.org/jpenney/use-google-libraries)
15
- - __[dev][1.6]__ [![Build Status](https://travis-ci.org/jpenney/use-google-libraries.png?branch=develop)](https://travis-ci.org/jpenney/use-google-libraries)
16
 
17
 
18
  [1.0]: ./README.txt
@@ -21,5 +21,5 @@ See the [README.txt][1.0] file, or one of the links below:
21
  [1.3]: https://github.com/jpenney/use-google-libraries
22
  [1.4.1]: https://github.com/jpenney/use-google-libraries/issues
23
  [1.4.2]: http://wordpress.org/support/plugin/use-google-libraries
24
- [1.5]: http://downloads.wordpress.org/plugin/use-google-libraries.1.5.2.zip
25
  [1.6]: https://github.com/jpenney/use-google-libraries/archive/develop.zip
11
  - [Issue Tracker][1.4.1]
12
  - [Forum][1.4.2]
13
  - Releases
14
+ - __[1.6.2][1.5]__ [![Build Status](https://travis-ci.org/jpenney/use-google-libraries.png?branch=master)](https://travis-ci.org/jpenney/use-google-libraries)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/?branch=master)[![Code Coverage](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/?branch=master)
15
+ - __[dev][1.6]__ [![Build Status](https://travis-ci.org/jpenney/use-google-libraries.png?branch=develop)](https://travis-ci.org/jpenney/use-google-libraries)[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/?branch=develop)[![Code Coverage](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/jpenney/use-google-libraries/?branch=develop)
16
 
17
 
18
  [1.0]: ./README.txt
21
  [1.3]: https://github.com/jpenney/use-google-libraries
22
  [1.4.1]: https://github.com/jpenney/use-google-libraries/issues
23
  [1.4.2]: http://wordpress.org/support/plugin/use-google-libraries
24
+ [1.5]: http://downloads.wordpress.org/plugin/use-google-libraries.1.6.1.zip
25
  [1.6]: https://github.com/jpenney/use-google-libraries/archive/develop.zip
README.txt CHANGED
@@ -4,7 +4,7 @@ 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.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,6 +126,11 @@ using K2.
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
129
  = 1.6.1 =
130
 
131
  + same as 1.6 (due to SVN issue with 1.6)
@@ -237,8 +242,9 @@ from [Peter Wilson](http://peterwilson.cc/).
237
 
238
  == Upgrade Notice ==
239
 
240
- = 1.6.1 =
241
- Fixes numerous issues. Recommended upgrade.
 
242
 
243
  == A Request ==
244
 
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
 
127
  == Changelog ==
128
 
129
+ = 1.6.2 =
130
+
131
+ + added some missing jQuery UI modules (hopefully fixes issues from support
132
+ forums I couldn't reproduce previously).
133
+
134
  = 1.6.1 =
135
 
136
  + same as 1.6 (due to SVN issue with 1.6)
242
 
243
  == Upgrade Notice ==
244
 
245
+ = 1.6.2 =
246
+
247
+ Fixes missing registrations. Upgrade immediately!
248
 
249
  == A Request ==
250
 
tests/test_ugl_scripts.php CHANGED
@@ -87,4 +87,22 @@ class UGL_ScriptTests extends UGL_ScriptTestCase {
87
  'noconflict_next should be cleared after remove_ver_query runs'
88
  );
89
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
87
  'noconflict_next should be cleared after remove_ver_query runs'
88
  );
89
  }
90
+
91
+ function test_all_jquery_ui_replaced() {
92
+ $scripts = $this->ugl->get_google_scripts();
93
+ $known = array_keys( $scripts );
94
+ $missing = array();
95
+ foreach ( array_keys( $this->scripts->registered ) as $handle ) {
96
+ if ( strpos( $handle, 'jquery-ui-') === 0 ) {
97
+ if ( !in_array ( $handle, $known ) ) {
98
+ $missing[] = $handle;
99
+ }
100
+ }
101
+ }
102
+ $this->assertEmpty(
103
+ $missing,
104
+ 'Not all jquery-ui components are handled by UGL: ' .
105
+ print_r($missing, true) );
106
+ }
107
+
108
  }
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.1
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.1';
38
  protected static $noconflict_inject = "<script type='text/javascript'>try{jQuery.noConflict();}catch(e){};</script>\n";
39
 
40
  public static function get_instance() {
@@ -155,9 +155,12 @@ if ( ! class_exists( 'JCP_UseGoogleLibraries' ) ) {
155
  'jquery-ui-progressbar' => array( '', '', 'jquery-ui-core' ),
156
  'jquery-ui-resizable' => array( '', '', 'jquery-ui-core' ),
157
  'jquery-ui-selectable' => array( '', '', 'jquery-ui-core' ),
 
158
  'jquery-ui-slider' => array( '', '', 'jquery-ui-core' ),
159
  'jquery-ui-sortable' => array( '', '', 'jquery-ui-core' ),
 
160
  'jquery-ui-tabs' => array( '', '', 'jquery-ui-core' ),
 
161
  'jquery-ui-widget' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.8 */
162
 
163
  /* jQuery Effects */
@@ -170,9 +173,11 @@ if ( ! class_exists( 'JCP_UseGoogleLibraries' ) ) {
170
  'jquery-effects-fade' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.8 */
171
  'jquery-effects-fold' => array( '', '', 'jquery-ui-core' ),
172
  'jquery-effects-highlight' => array( '', '', 'jquery-ui-core' ),
 
173
  'jquery-effects-pulsate' => array( '', '', 'jquery-ui-core' ),
174
  'jquery-effects-scale' => array( '', '', 'jquery-ui-core' ),
175
  'jquery-effects-shake' => array( '', '', 'jquery-ui-core' ),
 
176
  'jquery-effects-slide' => array( '', '', 'jquery-ui-core' ),
177
  'jquery-effects-transfer' => array( '', '', 'jquery-ui-core' ),
178
 
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
 
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() {
155
  'jquery-ui-progressbar' => array( '', '', 'jquery-ui-core' ),
156
  'jquery-ui-resizable' => array( '', '', 'jquery-ui-core' ),
157
  'jquery-ui-selectable' => array( '', '', 'jquery-ui-core' ),
158
+ 'jquery-ui-selectmenu' => array( '', '', 'jquery-ui-core' ),/* jQuery UI 1.11 */
159
  'jquery-ui-slider' => array( '', '', 'jquery-ui-core' ),
160
  'jquery-ui-sortable' => array( '', '', 'jquery-ui-core' ),
161
+ 'jquery-ui-spinner' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.11 */
162
  'jquery-ui-tabs' => array( '', '', 'jquery-ui-core' ),
163
+ 'jquery-ui-tooltip' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.11 */
164
  'jquery-ui-widget' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.8 */
165
 
166
  /* jQuery Effects */
173
  'jquery-effects-fade' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.8 */
174
  'jquery-effects-fold' => array( '', '', 'jquery-ui-core' ),
175
  'jquery-effects-highlight' => array( '', '', 'jquery-ui-core' ),
176
+ 'jquery-effects-puff' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.11 */
177
  'jquery-effects-pulsate' => array( '', '', 'jquery-ui-core' ),
178
  'jquery-effects-scale' => array( '', '', 'jquery-ui-core' ),
179
  'jquery-effects-shake' => array( '', '', 'jquery-ui-core' ),
180
+ 'jquery-effects-size' => array( '', '', 'jquery-ui-core' ), /* jQuery UI 1.11 */
181
  'jquery-effects-slide' => array( '', '', 'jquery-ui-core' ),
182
  'jquery-effects-transfer' => array( '', '', 'jquery-ui-core' ),
183