From 4c4952d3f991c5469fcf60afba7fbc5ff7bb6064 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 27 Aug 2020 20:33:04 +0000 Subject: [PATCH] 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. Fixes #50919. Built from https://develop.svn.wordpress.org/trunk@48890 git-svn-id: http://core.svn.wordpress.org/trunk@48652 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 5725269a9c..6f59ec8e06 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8e20578367..0f750875cf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-48888'; +$wp_version = '5.6-alpha-48890'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.