Skip to content

Instantly share code, notes, and snippets.

@derekshirk
Last active August 29, 2015 14:03
Show Gist options
  • Save derekshirk/6bd4b912efcaf0181e69 to your computer and use it in GitHub Desktop.
Save derekshirk/6bd4b912efcaf0181e69 to your computer and use it in GitHub Desktop.
Wordpress - Remove jquery migrate js
// -----------------------------------------------------------------------------------------
// Remove jquery migrate js
// -----------------------------------------------------------------------------------------
function dequeue_jquery_migrate( &$scripts){
if(!is_admin()){
$scripts->remove( 'jquery');
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' );
}
}
add_filter( 'wp_default_scripts', 'dequeue_jquery_migrate' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment