Commit b1e4358b authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Script Loader: Change the `jquery` handle back to an alias for `jquery-core`.

This ensures that `wp_localize_script( 'jquery', ... )` continues to work as expected, since `WP_Scripts::localize()` rewrites the `jquery` handle to `jquery-core` internally.

Follow-up to [48323].

Props mukesh27, rajeshsingh520, johnbillion, TimothyBlynJacobs, TobiasBg.
Merges [48890] to the 5.5 branch.
Fixes #50919.
Built from https://develop.svn.wordpress.org/branches/5.5@48891


git-svn-id: https://core.svn.wordpress.org/branches/5.5@48653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 95f6f727
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -719,7 +719,7 @@ function wp_default_scripts( $scripts ) {
	$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array( 'scriptaculous-dragdrop' ) );

	// jQuery.
	$scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', array(), '1.12.4-wp' );
	$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4-wp' );
	$scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.12.4-wp' );
	$scripts->add( 'jquery-migrate', "/wp-includes/js/jquery/jquery-migrate$suffix.js", array(), '1.4.1' );

+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 *
 * @global string $wp_version
 */
$wp_version = '5.5.1-alpha-48889';
$wp_version = '5.5.1-alpha-48891';

/**
 * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.