Changeset 535823
- Timestamp:
- 04/24/2012 09:10:25 PM (14 years ago)
- Location:
- use-google-libraries/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (4 diffs)
-
use-google-libraries.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
use-google-libraries/trunk/README.txt
r472222 r535823 4 4 Tags: javascript, performance, CDN, Google, jQuery, Prototype, MooTools, Dojo, Google AJAX Libraries API, YSlow, Page Speed 5 5 Requires at least: 2.9.1 6 Tested up to: 3.3 7 Stable tag: 1.2 6 Tested up to: 3.3.2 7 Stable tag: 1.2.1 8 8 9 9 Allows your site to use common javascript libraries from Google's AJAX … … 70 70 **Incompatible Themes** for specific information. 71 71 72 = How do I use the libraries supplied by Use Google Libraries? = 73 74 The same way you use them when Use Google Libraries isn't installed using 75 'wp_enqueue_script'. In fact you should develop your theme or plugin without 76 Use Google Libraries being enabled at all, then test it both ways. 77 72 78 == Incompatible Plugins == 73 79 … … 81 87 82 88 == Changelog == 89 90 = 1.2.1 = 91 92 + Added check for WordPress including non-standard versions of scripts (fixes 93 WordPress 3.2.2/swfobject). 94 + Fixed incorrect case in HTTPS check. 83 95 84 96 = 1.2 = … … 158 170 == Upgrade Notice == 159 171 160 = 1.2 =161 Dependency support improved. Needed for WordPress 3.3. 172 = 1.2.1 = 173 Required for WordPress 3.3.2 162 174 163 175 == A Request == -
use-google-libraries/trunk/use-google-libraries.php
r472217 r535823 4 4 Plugin URI: http://jasonpenney.net/wordpress-plugins/use-google-libraries/ 5 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.2 6 Version: 1.2.1 7 7 Author: Jason Penney 8 8 Author URI: http://jasonpenney.net/ … … 55 55 protected static $script_before_init_notice = 56 56 '<strong>Use Google Libraries</strong>: Another plugin has registered or enqued a script before the "init" action. Attempting to work around it.'; 57 58 57 /** 59 58 * PHP 4 Compatible Constructor … … 152 151 or 153 152 ( isset( $_SERVER ) and 154 ( ( isset( $_SERVER['HTTPS'] ) and $_SERVER[' https'] !='' and $_SERVER['HTTPS'] != 'off' )153 ( ( isset( $_SERVER['HTTPS'] ) and $_SERVER['HTTPS'] !='' and $_SERVER['HTTPS'] != 'off' ) 155 154 or 156 155 ( isset( $_SERVER['SERVER_PORT'] ) and $_SERVER['SERVER_PORT'] == '443' ) ) ) ) { … … 227 226 // default to requested ver 228 227 $ver = $script->ver; 228 229 if ( strpos( $ver, '-' ) !== false ) { 230 if ( WP_DEBUG !== false ) { 231 error_log("WordPress appears to be using a non-standard version of $name (version $ver). Use Google Libraries not enabled for $name."); 232 } 233 continue; 234 } 229 235 230 236 // TODO: replace with more flexible option
Note: See TracChangeset
for help on using the changeset viewer.