Ticket #25351: 25351.5.diff
File 25351.5.diff, 2.8 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
55 55 // Ignore unminified versions of external libs we don't ship: 56 56 '!wp-includes/js/backbone.js', 57 57 '!wp-includes/js/underscore.js', 58 '!wp-includes/js/jquery/jquery.masonry.js', 58 59 '!wp-includes/version.php' // Exclude version.php 59 60 ], 60 61 dest: BUILD_DIR -
src/wp-includes/js/jquery/jquery.masonry.min.js
1 !function(a){var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?b.prototype.options.transitionDuration:0),void 0===a||a){var c=this.options.animationOptions,d=c&&c.duration;d&&(this.options.transitionDuration="string"==typeof d?d:d+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){this._remapV2Options(),c.apply(this,arguments)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),f.apply(this,arguments)}}(window); 2 No newline at end of file -
src/wp-includes/script-loader.php
201 201 // Masonry v2 depended on jQuery. v3 does not. The older jquery-masonry handle is a shiv. 202 202 // It sets jQuery as a dependency, as the theme may have been implicitly loading it this way. 203 203 $scripts->add( 'masonry', "/wp-includes/js/masonry.min.js", array(), '3.1.2', 1 ); 204 $scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$ suffix.js", array( 'jquery', 'masonry' ), '3.1.2', 1 );204 $scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$dev_suffix.js", array( 'jquery', 'masonry' ), '3.1.2', 1 ); 205 205 206 206 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 ); 207 207 did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(