Skip to content

Commit

Permalink
Chore: Align the version of loash with WordPress core (#17528)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored and youknowriad committed Sep 30, 2019
1 parent 28b17e0 commit 4225ddb
Show file tree
Hide file tree
Showing 40 changed files with 83 additions and 104 deletions.
7 changes: 3 additions & 4 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ function gutenberg_register_vendor_scripts() {
// Vendor Scripts.
$react_suffix = ( SCRIPT_DEBUG ? '.development' : '.production' ) . $suffix;

// TODO: Overrides for react, react-dom and lodash are necessary
// until WordPress 5.3 is released.
gutenberg_register_vendor_script(
'react',
'https://unpkg.com/react@16.9.0/umd/react' . $react_suffix . '.js',
Expand All @@ -419,12 +421,9 @@ function gutenberg_register_vendor_scripts() {
'https://unpkg.com/react-dom@16.9.0/umd/react-dom' . $react_suffix . '.js',
array( 'react' )
);

// TODO: This is necessarily only so long as core ships with v4.17.11, and
// can be removed at such time a newer version is available.
gutenberg_register_vendor_script(
'lodash',
'https://unpkg.com/lodash@4.17.14/lodash' . $suffix . '.js'
'https://unpkg.com/lodash@4.17.15/lodash' . $suffix . '.js'
);
}

Expand Down
Loading

0 comments on commit 4225ddb

Please sign in to comment.