Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Apr 25, 2023
1 parent 4b2fe2e commit e81da56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/compat/wordpress-6.3/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@
* @since 6.0.0
* @access private
*
* @global string $pagenow The filename of the current screen.
*
* @return array {
* The block editor assets.
*
* @type string|false $styles String containing the HTML for styles.
* @type string|false $scripts String containing the HTML for scripts.
* }
*/
function _wp_get_iframed_editor_assets__63() {
function _gutenberg_get_iframed_editor_assets() {
global $wp_styles, $wp_scripts;

// Keep track of the styles and scripts instance to restore later.
Expand Down Expand Up @@ -76,7 +74,7 @@ function _wp_get_iframed_editor_assets__63() {
'block_editor_settings_all',
function( $settings ) {
// We must override what core is passing now.
$settings['__unstableResolvedAssets'] = _wp_get_iframed_editor_assets__63();
$settings['__unstableResolvedAssets'] = _gutenberg_get_iframed_editor_assets();
return $settings;
},
100
Expand Down

0 comments on commit e81da56

Please sign in to comment.