web_development:wordpress:jquery-fix

WordPress 4.5 Image Fix

function wpse_use_previous_jquery() {
    if ( ! is_admin() ) {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'https://code.jquery.com/jquery-1.11.3.min.js' );
        wp_enqueue_script( 'jquery' );
    }
}
add_action( 'init', 'wpse_use_previous_jquery' );
  • web_development/wordpress/jquery-fix.txt
  • Last modified: 2020/10/09 03:53
  • by jimboobrien