Make WordPress Core

Ticket #25351: 25351.5.diff

File 25351.5.diff, 2.8 KB (added by kovshenin, 11 years ago)
  • Gruntfile.js

     
    5555                                                        // Ignore unminified versions of external libs we don't ship:
    5656                                                        '!wp-includes/js/backbone.js',
    5757                                                        '!wp-includes/js/underscore.js',
     58                                                        '!wp-includes/js/jquery/jquery.masonry.js',
    5859                                                        '!wp-includes/version.php' // Exclude version.php
    5960                                                ],
    6061                                                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

     
    201201        // Masonry v2 depended on jQuery. v3 does not. The older jquery-masonry handle is a shiv.
    202202        // It sets jQuery as a dependency, as the theme may have been implicitly loading it this way.
    203203        $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 );
    205205
    206206        $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20121105', 1 );
    207207        did_action( 'init' ) && $scripts->localize( 'thickbox', 'thickboxL10n', array(