Skip to content
Prev Previous commit
Next Next commit
Add changes from #5235
  • Loading branch information
mikachan committed Sep 26, 2023
commit 71ce1494262517361cee14a41a807d8c937b8f11
8 changes: 7 additions & 1 deletion src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function wp_default_packages_vendor( $scripts ) {
$vendor_scripts_versions = array(
'react' => '18.2.0',
'react-dom' => '18.2.0',
'regenerator-runtime' => '0.14.0',
'regenerator-runtime' => '0.13.11',
'moment' => '2.29.4',
'lodash' => '4.17.19',
'wp-polyfill-fetch' => '3.6.17',
Expand Down Expand Up @@ -1690,6 +1690,7 @@ function wp_default_styles( $styles ) {
'wp-block-library',
'wp-reusable-blocks',
'wp-block-editor-content',
'wp-patterns',
);

// Only load the default layout and margin styles for themes without theme.json file.
Expand Down Expand Up @@ -1732,10 +1733,12 @@ function wp_default_styles( $styles ) {
'wp-components',
'wp-block-editor',
'wp-reusable-blocks',
'wp-patterns',
),
'format-library' => array(),
'list-reusable-blocks' => array( 'wp-components' ),
'reusable-blocks' => array( 'wp-components' ),
'patterns' => array( 'wp-components' ),
'nux' => array( 'wp-components' ),
'widgets' => array(
'wp-components',
Expand All @@ -1746,13 +1749,15 @@ function wp_default_styles( $styles ) {
'wp-edit-blocks',
'wp-block-library',
'wp-reusable-blocks',
'wp-patterns',
),
'customize-widgets' => array(
'wp-widgets',
'wp-block-editor',
'wp-edit-blocks',
'wp-block-library',
'wp-reusable-blocks',
'wp-patterns',
),
'edit-site' => array(
'wp-components',
Expand Down Expand Up @@ -1824,6 +1829,7 @@ function wp_default_styles( $styles ) {
'wp-format-library',
'wp-list-reusable-blocks',
'wp-reusable-blocks',
'wp-patterns',
'wp-nux',
'wp-widgets',
// Deprecated CSS.
Expand Down