Build Tools:

- Update the DependencyExtractionWebpackPlugin to 2.3.0 and set it to output a single assets file.
- Grunt: copy the assets file to both `SOURCE_DIR` and `BUILD_DIR` as `wp-includes/assets/script-loader-packages.php`.
- "Unignore" the `wp-includes/assets` directory. Its content will be committed similarly to `wp-includes/blocks`.
- Update `wp_default_packages_scripts()` to use the above file. This also removes the hard-coded lists of packages and packages with translations.

Props gziolo, pbearne, johnbillion, isabel_brison, ocean90, azaozz.
Fixes #48154.
Built from https://develop.svn.wordpress.org/trunk@47352


git-svn-id: http://core.svn.wordpress.org/trunk@47139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2020-02-24 21:22:08 +00:00
parent 480372b07c
commit 50be657d81
95 changed files with 17 additions and 166 deletions

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => '75e8857bbf1d491f0c582e08b1dadbd6');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-dom-ready', 'wp-polyfill'), 'version' => 'f53b6acedf350b75fb34d33ccdd1becd');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'da0fd5e89656a085dce028b7801d5448');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '64ce64933336f9754034f9e344576463');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '3f9c4530789ad55104bd4e6fb1d7b2c0');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ee8c6088879a9de9c1f7c39a4d8cec72');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '205ce2875ce340d29d444c2b6204f1c0');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '64c5bad7c376d35b0ae545448cccd97f');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'aba7ab22bcfc07e4378e40e92e7ab85d');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '969fb886e527f53fcc8d9b63eec52c24');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '32349b6b799bb23ecdff857c3a1c85d8');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '90442009533da4fdcddaf2b54c424bbd');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'b5ff1c6c60ac9bf9e43e71d7a0f992e4');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '93ef6b67291d3c1f5279c8d78dfd29e9');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'a5882b7f029c0a75c9df5b562c076b86');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'moment', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '743f2ea082e675f7dbbdf02e3ead6342');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '493193bef61f5a7f8f8f89ca631a01de');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '7c23013381d6c18079b33a6016b39428');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'ee754416797881e577236b3cc2495651');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => '1e16a3bef3608af4e7a7f9cd3c2e402c');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => 'fd429ba1f75a7eee7aef48ce1895249c');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '97c64fbcfbf11cf90ec2699a4cbe0b53');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => '73886b98cede5ee6ca063ddc889ac566');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill'), 'version' => 'bae27e329e0dad49d835cecb0c9b38af');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'a5dfc158a4629acf3eaa4c086bda8992');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '9a7594005b1a2833106e88da1160a5a1');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '9dd473f24e19d3b632d799376da103ed');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => 'ac7bceebbefac04c0bcd74765f527749');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '3442a3ba7f75e8c54d93263da11d0e77');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '890d0376c8a4c5118688a2c0109bd9c1');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '030fdca2819467d4296a129a89763133');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'cc37d1833eb901a0aa6f9f2eb7d85555');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e016dcf6dc5ed48938f8622acbc152f3');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'd1ecf6aace7abae8fe1806e9f3af5aef');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '5045831f601200e96ad481e311acfe42');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '782ce93dd17c29c50d1bc1b566eb389b');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4e3608876d4b4572c406b47966b8d075');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '674a43fdc6021e35eb012abb12c0617f');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'cc2c3b1f5dc2e8bfbb2bfb21c50a603f');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => 'bf4f1b272d8860b280d67bbf71f8853c');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '63131715a52708dc239d4eafce97aba0');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '4ff80a83e0200ecabbec818c971427cf');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '41f8060e94eb56bb3c5d230d8b7dc349');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '70dae9565323bdbc0d818f19e6887fd6');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'df3aea46fc6e3563882bc8891b21101d');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c8f49d23794bd2226688fb07f94bdd41');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'c9654deb47ed294f14ff96151af02331');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '220e380d11112568564697f39c59323e');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'd39b1cb0581c2927bbe7840b63f579fd');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '4e15d9396ed1ab54a196cf83d5538135');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'c43b49e3f3da377cefdadb0131ba7a31');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '05eb19de1e103bf142b693eb1bdef068');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f8c65a436595a2be28654f3d22e0cdef');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '6d723eb51c6825ac8b031dd19f6949a0');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '3bb3f6a7a8127b024342e718ad297e81');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'b1acc19250e939acc3827b8ac81e085e');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '3a74bf76a3ed9366813586bf5882bcea');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '23af971fdc3084676ae6c31c5eb6d284');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '2e2855269d5ab0ab5f2b9f8811e007a4');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'c044f2e66ee3cb4a1dfa58589c677204');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1df487d8230f49185e68ebf57decded6');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '7cbaeeb3742fc76826bef886b49da2b1');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '30343cf12ac797ef15c05beb2befdf21');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '2135d38633323e6ad955646765e4dc06');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '3b3e946b2d484de31e4be1dc7a48001e');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '49e541be3dedbc75d4648c5dd8ae75d9');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '1ba37d76d312b3e4f35352e9e225e129');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '33bf786da03040b30f1b6e8583ad0918');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '474a4e9edc27fd2d9679d00ef548c966');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill'), 'version' => '76fdde2c03a2edbcc352763ee5691dfc');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '6e6869dc94974fb23e5747bc1cf59e23');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '94b727e6d6cec664f90ac83255e1fc31');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '8a1d6153fa8a4d4feec1d9ef21a1750f');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '242dabc3c3166623f5666797f1fde53f');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '455bbe5442bfb84840ff801a9ea5be69');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a42b8ea701f8d96d8ab5ac510f516cbb');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ef45226203dde56110939da3aaaa0905');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill'), 'version' => 'd1f757de85babfdf90d7f4e71ac926c9');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '110181c4ac96264be701b8a27777b9a2');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'f0c3aeb78e81fb5640d689cec8c766b1');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3173f285aee099b367ac20385a778615');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'c98dbfc509417c9662995675dc9ecf20');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4b20a43e08878013a4cc5812236d6046');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '131c8ce29b8bcde896570bde13812532');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '14dce49ab7da6088abc01bec4529f9d0');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd4b77a8be1b5945f22702f06afcce917');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '8cd5499a15fd58371759a3182b50ac33');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '5bb99845e9e6d5801d78b2baf6e1251a');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f634219101ddcef8327fb62f2bcb6a93');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'e2358245d6ec8eef9f22f7f4bc6959d4');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '65dc9af6558243b4661ad44761e22cf4');

View File

@ -1 +0,0 @@
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '17e58319587a61d43731bde0268ab549');

File diff suppressed because one or more lines are too long

View File

@ -231,81 +231,23 @@ function wp_get_script_polyfill( &$scripts, $tests ) {
function wp_default_packages_scripts( &$scripts ) {
$suffix = wp_scripts_get_suffix();
$packages = array(
'a11y',
'annotations',
'api-fetch',
'autop',
'blob',
'block-directory',
'block-editor',
'block-library',
'block-serialization-default-parser',
'blocks',
'components',
'compose',
'core-data',
'data',
'data-controls',
'date',
'deprecated',
'dom',
'dom-ready',
'edit-post',
'editor',
'element',
'escape-html',
'format-library',
'hooks',
'html-entities',
'i18n',
'is-shallow-equal',
'keyboard-shortcuts',
'keycodes',
'list-reusable-blocks',
'media-utils',
'notices',
'nux',
'plugins',
'primitives',
'priority-queue',
'redux-routine',
'rich-text',
'shortcode',
'server-side-render',
'token-list',
'url',
'viewport',
'warning',
'wordcount',
);
// Expects multidimensional array like:
// 'a11y.js' => array('dependencies' => array(...), 'version' => '...'),
// 'annotations.js' => array('dependencies' => array(...), 'version' => '...'),
// 'api-fetch.js' => array(...
$assets = include ABSPATH . WPINC . '/assets/script-loader-packages.php';
$package_translations = array(
'api-fetch',
'blocks',
'block-directory',
'block-editor',
'block-library',
'components',
'edit-post',
'editor',
'format-library',
'keycodes',
'list-reusable-blocks',
'nux',
);
foreach ( $assets as $package_name => $package_data ) {
$basename = basename( $package_name, '.js' );
$handle = 'wp-' . $basename;
$path = "/wp-includes/js/dist/{$basename}{$suffix}.js";
foreach ( $packages as $package ) {
$handle = 'wp-' . $package;
$path = "/wp-includes/js/dist/$package$suffix.js";
if ( ! file_exists( ABSPATH . $path ) ) {
continue;
if ( ! empty( $package_data['dependencies'] ) ) {
$dependencies = $package_data['dependencies'];
} else {
$dependencies = array();
}
$asset_file = require ABSPATH . WPINC . "/assets/dist/$package$suffix.asset.php";
$dependencies = $asset_file['dependencies'];
// Add dependencies that cannot be detected and generated by build tools.
switch ( $handle ) {
case 'wp-block-library':
@ -316,9 +258,9 @@ function wp_default_packages_scripts( &$scripts ) {
break;
}
$scripts->add( $handle, $path, $dependencies, $asset_file['version'], 1 );
$scripts->add( $handle, $path, $dependencies, $package_data['version'], 1 );
if ( in_array( $package, $package_translations, true ) ) {
if ( in_array( 'wp-i18n', $dependencies, true ) ) {
$scripts->set_translations( $handle );
}
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.4-beta2-47351';
$wp_version = '5.4-beta2-47352';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.