Version Description
- Quick and dirty workaround for scriptaculous loading (thanks to Gregory Lam for bringing it to my attention
Download this release
Release Info
Developer | jczorkmid |
Plugin | Use Google Libraries |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6.1 to 1.0.7
- README.txt +7 -1
- use-google-libraries.php +7 -1
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
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 2.8
|
7 |
-
Stable tag: 1.0.
|
8 |
|
9 |
Allows your site to use common javascript libraries from Google's AJAX
|
10 |
Libraries CDN, rather than from Wordpress's own copies.
|
@@ -52,6 +52,12 @@ disappearing.
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= 1.0.6.1 =
|
56 |
|
57 |
+ moved location of the Changelog section in the README
|
4 |
Tags: javascript, performance, CDN, Google, jQuery, Prototype, MooTools, Dojo, Google AJAX Libraries API
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 2.8
|
7 |
+
Stable tag: 1.0.7
|
8 |
|
9 |
Allows your site to use common javascript libraries from Google's AJAX
|
10 |
Libraries CDN, rather than from Wordpress's own copies.
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.0.7 =
|
56 |
+
|
57 |
+
+ Quick and dirty workaround for scriptaculous loading (thanks to
|
58 |
+
[Gregory Lam for bringing it to my
|
59 |
+
attention](https://twitter.com/gregorylam/statuses/2279304842)
|
60 |
+
|
61 |
= 1.0.6.1 =
|
62 |
|
63 |
+ moved location of the Changelog section in the README
|
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.0.
|
7 |
Author: Jason Penney
|
8 |
Author URI: http://jasonpenney.net/
|
9 |
*/
|
@@ -103,6 +103,12 @@ if (!class_exists('JCP_UseGoogleLibraries')) {
|
|
103 |
// default to requested ver
|
104 |
$ver = $script->ver;
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
// if $lib is empty, then this script does not need to be
|
107 |
// exlicitly loaded when using googleapis.com, but we need to keep
|
108 |
// it around for dependencies
|
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.0.7
|
7 |
Author: Jason Penney
|
8 |
Author URI: http://jasonpenney.net/
|
9 |
*/
|
103 |
// default to requested ver
|
104 |
$ver = $script->ver;
|
105 |
|
106 |
+
// TODO: replace with more flexible option
|
107 |
+
// quick and dirty work around for scriptaculous 1.8.0
|
108 |
+
if (strpos($name,'scriptaculous') && $ver = '1.8.0') {
|
109 |
+
$ver = '1.8';
|
110 |
+
}
|
111 |
+
|
112 |
// if $lib is empty, then this script does not need to be
|
113 |
// exlicitly loaded when using googleapis.com, but we need to keep
|
114 |
// it around for dependencies
|