From 8daade531adbe542ea098b6eb904faf73b0a0434 Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 18 Dec 2024 18:25:18 +1100 Subject: [PATCH] It was an oversight not to check block settings for background image default controls. There is only "one" control officially, but at least this change allows blocks to control it pulling it in line with other blocks. --- packages/block-editor/src/hooks/background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-editor/src/hooks/background.js b/packages/block-editor/src/hooks/background.js index 3755aecbcb9d0b..6268ff31b29890 100644 --- a/packages/block-editor/src/hooks/background.js +++ b/packages/block-editor/src/hooks/background.js @@ -177,6 +177,11 @@ export function BackgroundImagePanel( { }, }; + const defaultControls = getBlockSupport( name, [ + BACKGROUND_SUPPORT_KEY, + 'defaultControls', + ] ); + return ( );