Script Loader: Fix 404 errors for the `jquery-masonry` script when `SCRIPT_DEBUG` is `true`.
The unminified version of `jquery-masonry` has never been included in Core. This hard codes the `.min` into the file source to prevent these errors. Props pondermatic, isabel_brison, SergeyBiryukov, azaozz, desrosj. Fixes #47353. Built from https://develop.svn.wordpress.org/trunk@51094 git-svn-id: http://core.svn.wordpress.org/trunk@50703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ef4b42b03b
commit
bac6a83417
|
@ -824,7 +824,7 @@ function wp_default_scripts( $scripts ) {
|
|||
// It sets jQuery as a dependency, as the theme may have been implicitly loading it this way.
|
||||
$scripts->add( 'imagesloaded', '/wp-includes/js/imagesloaded.min.js', array(), '4.1.4', 1 );
|
||||
$scripts->add( 'masonry', '/wp-includes/js/masonry.min.js', array( 'imagesloaded' ), '4.2.2', 1 );
|
||||
$scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$dev_suffix.js", array( 'jquery', 'masonry' ), '3.1.2b', 1 );
|
||||
$scripts->add( 'jquery-masonry', '/wp-includes/js/jquery/jquery.masonry.min.js', array( 'jquery', 'masonry' ), '3.1.2b', 1 );
|
||||
|
||||
$scripts->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array( 'jquery' ), '3.1-20121105', 1 );
|
||||
did_action( 'init' ) && $scripts->localize(
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-alpha-51093';
|
||||
$wp_version = '5.8-alpha-51094';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue