Have the 'jquery' script handle be a parent of both jQuery core and jQuery Migrate. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb3fc35a3d
commit
19dcf9dae0
|
@ -125,8 +125,9 @@ function wp_default_scripts( &$scripts ) {
|
||||||
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop') );
|
$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop') );
|
||||||
|
|
||||||
// jQuery
|
// jQuery
|
||||||
$scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery.js', array(), '1.9.0b1' );
|
$scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ) );
|
||||||
$scripts->add( 'jquery', '/wp-includes/js/jquery/jquery-migrate.js', array( 'jquery-migrate' ), '1.0.0b1' );
|
$scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.9.0b1' );
|
||||||
|
$scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.js', array(), '1.0.0b1' );
|
||||||
|
|
||||||
// full jQuery UI
|
// full jQuery UI
|
||||||
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui/jquery.ui.core.min.js', array('jquery'), '1.9.2', 1 );
|
$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui/jquery.ui.core.min.js', array('jquery'), '1.9.2', 1 );
|
||||||
|
|
Loading…
Reference in New Issue