In case you want to remove jquery-migrate.js for performance reasons, here is the code you can use. Note that this may break some plugins or legacy code. So make sure you do enough testing before removing jquery-migrate.js.
Using wp_default_scripts filter
add_filter( 'wp_default_scripts', 'remove_jquery_migrate' ); function remove_jquery_migrate( &$scripts) { if(!is_admin()) { $scripts->remove( 'jquery'); $scripts->add( 'jquery', false, array( 'jquery-core' ), '1.11.3' ); } }
Replace 1.11.3 with the latest jquery version that comes with wordpress. Also note that above code will remove jquery from wordpress front end and not from admin pages.
Using wp_deregister_script and wp_enqueue_script
// remove jquery-migrate add_action( 'wp_enqueue_scripts', 'remove_jquery_migrate' ); function remove_jquery_migrate() { if (!is_admin()) { wp_deregister_script( 'jquery' ); wp_enqueue_script('jquery', includes_url( '/js/jquery/jquery.js' ),false, '1.11.3'); } }