I drop this in WPMU_PLUGIN_DIR when developing.
WPMU_PLUGIN_DIR defaults to wp-content/mu-plugins/ but is configurable in wp-config.php
| <?php | |
| add_filter( 'wp_default_scripts', function ( &$scripts ) { | |
| if( ! is_admin() ) { | |
| $jquery_version = $scripts->registered[ 'jquery' ]->ver; | |
| $scripts->remove( 'jquery'); | |
| $scripts->add( 'jquery', false, array( 'jquery-core' ), $jquery_version ); | |
| } | |
| }); |