Fix 3.6. Closes #3061.

This commit is contained in:
Mike Jolley 2013-05-01 14:32:47 +01:00
parent f07df1aa39
commit fdd5a09164
2 changed files with 2 additions and 1 deletions

View File

@ -178,6 +178,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Mijireh page slurp.
* Fix - woocommerce_downloadable_product_name filter fixes.
* Fix - Pass order number to google analytics, not id
* Fix - check_jquery in WP 3.6 beta
* Localization - Netherlands, Hungarian, Taiwan, Italian, CZ, Spanish, Catalan updates.
* Localization - Slovak translation by Dusan Belescak.
* Other minor fixes and localisation updates.

View File

@ -1248,7 +1248,7 @@ class Woocommerce {
global $wp_scripts;
// Enforce minimum version of jQuery
if ( isset( $wp_scripts->registered['jquery']->ver ) && $wp_scripts->registered['jquery']->ver < '1.7' ) {
if ( ! empty( $wp_scripts->registered['jquery']->ver ) && ! empty( $wp_scripts->registered['jquery']->src ) && $wp_scripts->registered['jquery']->ver < '1.7' ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', '/wp-includes/js/jquery/jquery.js', array(), '1.7' );
wp_enqueue_script( 'jquery' );