Skip to content

Commit 28305f9

Browse files
committed
Restore styles to array
The editor package prints styles and scripts sequentially. Provide HTML as styles to ensure its printed in legacy editor packages.
1 parent e29ce4b commit 28305f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wp-includes/block-editor.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,10 @@ function _wp_get_iframed_editor_assets() {
387387
$wp_scripts = $current_wp_scripts;
388388
$wp_script_modules = $current_wp_script_modules;
389389

390-
return array( 'html' => $html );
390+
return array(
391+
'styles' => $html,
392+
'html' => $html,
393+
);
391394
}
392395

393396
/**

0 commit comments

Comments
 (0)