Plugin Directory

Changeset 535823


Ignore:
Timestamp:
04/24/2012 09:10:25 PM (14 years ago)
Author:
jczorkmid
Message:

fix for WordPress 3.3.2

Location:
use-google-libraries/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • use-google-libraries/trunk/README.txt

    r472222 r535823  
    44Tags: javascript, performance, CDN, Google, jQuery, Prototype, MooTools, Dojo, Google AJAX Libraries API, YSlow, Page Speed
    55Requires at least: 2.9.1
    6 Tested up to: 3.3
    7 Stable tag: 1.2
     6Tested up to: 3.3.2
     7Stable tag: 1.2.1
    88
    99Allows your site to use common javascript libraries from Google's AJAX
     
    7070**Incompatible Themes** for specific information.
    7171
     72= How do I use the libraries supplied by Use Google Libraries? =
     73
     74The 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
     76Use Google Libraries being enabled at all, then test it both ways.
     77
    7278== Incompatible Plugins ==
    7379
     
    8187
    8288== Changelog ==
     89
     90= 1.2.1 =
     91
     92+ Added check for WordPress including non-standard versions of scripts (fixes
     93WordPress 3.2.2/swfobject).
     94+ Fixed incorrect case in HTTPS check.
    8395
    8496= 1.2 =
     
    158170== Upgrade Notice ==
    159171
    160 = 1.2 =
    161 Dependency support improved. Needed for WordPress 3.3.
     172= 1.2.1 =
     173Required for WordPress 3.3.2
    162174
    163175== A Request ==
  • use-google-libraries/trunk/use-google-libraries.php

    r472217 r535823  
    44  Plugin URI: http://jasonpenney.net/wordpress-plugins/use-google-libraries/
    55  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
    77  Author: Jason Penney
    88  Author URI: http://jasonpenney.net/
     
    5555        protected static $script_before_init_notice =
    5656            '<strong>Use Google Libraries</strong>: Another plugin has registered or enqued a script before the "init" action.  Attempting to work around it.';
    57 
    5857        /**
    5958         * PHP 4 Compatible Constructor
     
    152151                or
    153152                ( 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' )
    155154                        or
    156155                        ( isset( $_SERVER['SERVER_PORT'] ) and $_SERVER['SERVER_PORT'] == '443' ) ) ) ) {
     
    227226                    // default to requested ver
    228227                    $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                    }
    229235
    230236                    // TODO: replace with more flexible option
Note: See TracChangeset for help on using the changeset viewer.