WordPress.org

Support

Support » Reviews » WooCommerce » Great ecommerce plugin

Great ecommerce plugin

  • Thanks for great plugin. Just one moment – in new version plugin enqueue core version of JQuery if current version less than 1.8. Can you, please, add with future update also JQuery Migrate plugin to enqueue with core version of JQuery, for better backward compatibility.

    Something like:

    public function check_jquery() {
        global $wp_scripts;
    
        // Enforce minimum version of jQuery
        if ( ! empty( $wp_scripts->registered['jquery']->ver ) && ! empty( $wp_scripts->registered['jquery']->src ) && 0 >= version_compare( $wp_scripts->registered['jquery']->ver, '1.8' ) ) {
    		wp_deregister_script( 'jquery' );
    		wp_register_script( 'jquery', '/wp-includes/js/jquery/jquery.js', array(), '1.8' );
    		wp_enqueue_script( 'jquery' );
    		wp_enqueue_script( 'jquery-migrate' );
        }
    }

    Thanks.

  • The topic ‘Great ecommerce plugin’ is closed to new replies.
Skip to toolbar