External Libraries: Update Masonry shim to prevent error using isAnimated option
The isAnimated option throws an error and causes Masonry to stop functioning. Masonry.prototype.options is no longer defined in 3.3.2, this.options is and does the same. Masonry was updated to 3.3.2 in [37891]. Reported upstream: https://github.com/desandro/masonry-v2-3-shim/pull/1 Props stephenharris, ocean90, azaozz for testing and second sign off. See #37666, #32802. git-svn-id: https://develop.svn.wordpress.org/trunk@38261 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e8f182885a
commit
40c9dcfa80
@ -26,7 +26,7 @@
|
|||||||
var isAniOption = this.options.isAnimated;
|
var isAniOption = this.options.isAnimated;
|
||||||
if ( isAniOption !== undefined ) {
|
if ( isAniOption !== undefined ) {
|
||||||
this.options.transitionDuration = isAniOption ?
|
this.options.transitionDuration = isAniOption ?
|
||||||
Masonry.prototype.options.transitionDuration : 0;
|
this.options.transitionDuration : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isAniOption === undefined || isAniOption ) {
|
if ( isAniOption === undefined || isAniOption ) {
|
||||||
|
@ -250,7 +250,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
// It sets jQuery as a dependency, as the theme may have been implicitly loading it this way.
|
// 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(), '3.2.0', 1 );
|
$scripts->add( 'imagesloaded', "/wp-includes/js/imagesloaded.min.js", array(), '3.2.0', 1 );
|
||||||
$scripts->add( 'masonry', "/wp-includes/js/masonry.min.js", array( 'imagesloaded' ), '3.3.2', 1 );
|
$scripts->add( 'masonry', "/wp-includes/js/masonry.min.js", array( 'imagesloaded' ), '3.3.2', 1 );
|
||||||
$scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$dev_suffix.js", array( 'jquery', 'masonry' ), '3.1.2', 1 );
|
$scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$dev_suffix.js", array( 'jquery', 'masonry' ), '3.1.2a', 1 );
|
||||||
|
|
||||||
$scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 );
|
$scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 );
|
||||||
did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(
|
did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(
|
||||||
|
Loading…
Reference in New Issue
Block a user