Skip to content

Commit

Permalink
Fix failing PHPUnit tests (#45265)
Browse files Browse the repository at this point in the history
Co-authored-by: Bernie Reiter <ockham@raz.or.at>
  • Loading branch information
Mamaduka and ockham committed Oct 25, 2022
1 parent 92c1115 commit 739b2b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/compat/wordpress-6.0/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ function gutenberg_resolve_assets() {
add_filter(
'block_editor_settings_all',
function( $settings ) {
// The `__unstableResolvedAssets` are generated by `_wp_get_iframed_editor_assets` for WP >= 6.0.
if ( function_exists( '_wp_get_iframed_editor_assets' ) ) {
return $settings;
}

// In the future we can allow WP Dependency handles to be passed.
$settings['__unstableResolvedAssets'] = gutenberg_resolve_assets();
return $settings;
Expand Down

0 comments on commit 739b2b0

Please sign in to comment.