Skip to content

Commit 55a6036

Browse files
committed
Restore: Sync Gutenberg @ dea73b609a80016eb1cf3893ea183fe106a06740
See changelog in 35313fa > Build/Test Tools: Update Gutenberg hash to fix CSS minification. > Updates the Gutenberg ref to include changes that generate both minified and non-minified CSS files during build. Previously, the build only produced a single CSS file (e.g., `style.css`), causing missing asset errors when `SCRIPT_DEBUG` is set to `false`, as Core expects `.min.css` files. > > Props peterwilsoncc, dd32, tyxla, jsnajdr, mcsf. git-svn-id: https://develop.svn.wordpress.org/branches/fixes-64393-restore-version-history@62119 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 886735e commit 55a6036

2 files changed

Lines changed: 0 additions & 43 deletions

File tree

src/wp-admin/includes/update-core.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,6 @@
837837
'wp-includes/blocks/post-template/editor.min.css',
838838
'wp-includes/blocks/post-template/editor-rtl.css',
839839
'wp-includes/blocks/post-template/editor-rtl.min.css',
840-
'wp-includes/js/dist/undo-manager.js',
841-
'wp-includes/js/dist/undo-manager.min.js',
842840
'wp-includes/js/dist/fields.min.js',
843841
'wp-includes/js/dist/fields.js',
844842
// 6.9

src/wp-includes/script-loader.php

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -218,46 +218,6 @@ function wp_get_script_polyfill( $scripts, $tests ) {
218218
return $polyfill;
219219
}
220220

221-
/**
222-
* Registers development scripts that integrate with `@wordpress/scripts`.
223-
*
224-
* @see https://github.com/WordPress/gutenberg/tree/trunk/packages/scripts#start
225-
*
226-
* @since 6.0.0
227-
*
228-
* @param WP_Scripts $scripts WP_Scripts object.
229-
*/
230-
function wp_register_development_scripts( $scripts ) {
231-
if (
232-
! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG
233-
|| empty( $scripts->registered['react'] )
234-
|| defined( 'WP_RUN_CORE_TESTS' )
235-
) {
236-
return;
237-
}
238-
239-
$development_scripts = array(
240-
'react-refresh-entry',
241-
'react-refresh-runtime',
242-
);
243-
244-
foreach ( $development_scripts as $script_name ) {
245-
$assets = include ABSPATH . WPINC . '/assets/script-loader-' . $script_name . '.php';
246-
if ( ! is_array( $assets ) ) {
247-
return;
248-
}
249-
$scripts->add(
250-
'wp-' . $script_name,
251-
'/wp-includes/js/dist/development/' . $script_name . '.js',
252-
$assets['dependencies'],
253-
$assets['version']
254-
);
255-
}
256-
257-
// See https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/docs/TROUBLESHOOTING.md#externalising-react.
258-
$scripts->registered['react']->deps[] = 'wp-react-refresh-entry';
259-
}
260-
261221
/**
262222
* Registers all the WordPress packages scripts that are in the standardized
263223
* `js/dist/` location.
@@ -658,7 +618,6 @@ function wp_tinymce_inline_scripts() {
658618
*/
659619
function wp_default_packages( $scripts ) {
660620
wp_default_packages_vendor( $scripts );
661-
wp_register_development_scripts( $scripts );
662621
wp_register_tinymce_scripts( $scripts );
663622
wp_default_packages_scripts( $scripts );
664623

0 commit comments

Comments
 (0)