Skip to content

Commit

Permalink
Revert "Enqueue the registered assets (#50185)" (#50537)
Browse files Browse the repository at this point in the history
* Revert "Enqueue the registered assets (#50185)"

This reverts commit 3b86c62.
  • Loading branch information
oandregal authored May 24, 2023
1 parent d492b4c commit 2944062
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions lib/compat/wordpress-6.2/default-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,3 @@
*
* @package gutenberg
*/

/**
* This is a temporary fix to ensure that the block editor styles are enqueued
* in the order the iframe expects.
*
* The wp_enqueue_registered_block_scripts_and_styles callback has been removed in core
* as of https://github.com/WordPress/wordpress-develop/pull/4356.
*
* However, Gutenberg supports WordPress 6.1 and 6.2, which still have this callback.
* Hence, why we remove it first and then re-add it.
*
* This way we make sure it still works the same in WordPress trunk, 6.1 and 6.2.
*/
remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_registered_block_scripts_and_styles' );
add_action( 'enqueue_block_editor_assets', 'wp_enqueue_registered_block_scripts_and_styles', 1 );
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe( 'iframed inline styles', () => {
await deactivatePlugin( 'gutenberg-test-iframed-inline-styles' );
} );

// Skip flaky test. See https://github.com/WordPress/gutenberg/issues/35172
it( 'should load inline styles in iframe', async () => {
await insertBlock( 'Iframed Inline Styles' );

Expand Down

0 comments on commit 2944062

Please sign in to comment.