diff --git a/lib/widgets-page.php b/lib/widgets-page.php index f611908f2a5605..c7a2b0e132ba3d 100644 --- a/lib/widgets-page.php +++ b/lib/widgets-page.php @@ -70,10 +70,9 @@ function gutenberg_widgets_init( $hook ) { $settings = array_merge( array( - 'imageSizes' => $available_image_sizes, - 'isRTL' => is_rtl(), - 'maxUploadFileSize' => $max_upload_size, - 'hideParentSelector' => true, + 'imageSizes' => $available_image_sizes, + 'isRTL' => is_rtl(), + 'maxUploadFileSize' => $max_upload_size, ), gutenberg_get_legacy_widget_settings() ); @@ -142,3 +141,4 @@ function gutenberg_widgets_editor_load_block_editor_scripts_and_styles( $is_bloc } add_filter( 'should_load_block_editor_scripts_and_styles', 'gutenberg_widgets_editor_load_block_editor_scripts_and_styles' ); + diff --git a/packages/block-editor/src/components/block-parent-selector/index.js b/packages/block-editor/src/components/block-parent-selector/index.js index c6b7a458ea3887..e47295e4498998 100644 --- a/packages/block-editor/src/components/block-parent-selector/index.js +++ b/packages/block-editor/src/components/block-parent-selector/index.js @@ -35,6 +35,10 @@ export default function BlockParentSelector() { }; }, [] ); + if ( parentBlockType.hideParentSelector ) { + return null; + } + if ( firstParentClientId !== undefined ) { return (