Created
May 15, 2018 21:33
-
-
Save nusserstudios/a752ee383200a03261d0cf5ffa699b7c to your computer and use it in GitHub Desktop.
Deque Jquery Migrate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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