diff --git a/readme.txt b/readme.txt index 93d011b0d95..399180963e8 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/woocommerce.php b/woocommerce.php index f2b3ec5e1f8..46d62e094c9 100644 --- a/woocommerce.php +++ b/woocommerce.php @@ -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' );