Make WordPress Core

Changeset 48276


Ignore:
Timestamp:
07/02/2020 01:08:04 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Script Loader: Restore correct versions for Masonry and imagesLoaded.

These libraries were previously updated in [48038], but some changes were accidentally reverted in [48267].

Props kebbet.
See #50526.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r48274 r48276  
    801801    // Masonry v2 depended on jQuery. v3 does not. The older jquery-masonry handle is a shiv.
    802802    // It sets jQuery as a dependency, as the theme may have been implicitly loading it this way.
    803     $scripts->add( 'imagesloaded', '/wp-includes/js/imagesloaded.min.js', array(), '3.2.0', 1 );
    804     $scripts->add( 'masonry', '/wp-includes/js/masonry.min.js', array( 'imagesloaded' ), '3.3.2', 1 );
     803    $scripts->add( 'imagesloaded', '/wp-includes/js/imagesloaded.min.js', array(), '4.1.4', 1 );
     804    $scripts->add( 'masonry', '/wp-includes/js/masonry.min.js', array( 'imagesloaded' ), '4.2.2', 1 );
    805805    $scripts->add( 'jquery-masonry', "/wp-includes/js/jquery/jquery.masonry$dev_suffix.js", array( 'jquery', 'masonry' ), '3.1.2b', 1 );
    806806
Note: See TracChangeset for help on using the changeset viewer.