Skip to content

Commit

Permalink
Background image support: Remove double output of styling rules (#56997)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong authored Dec 13, 2023
1 parent e07802b commit 9855f16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/block-supports/background.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,7 @@ function gutenberg_render_background_support( $block_content, $block ) {
)
);

if ( function_exists( 'wp_render_background_support' ) ) {
remove_filter( 'render_block', 'wp_render_background_support' );
}
add_filter( 'render_block', 'gutenberg_render_background_support', 10, 2 );

1 comment on commit 9855f16

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 9855f16.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7190238994
📝 Reported issues:

Please sign in to comment.