'blockCategories' =>
get_default_block_categories(),
'isRTL' =>
is_rtl(),
'imageDefaultSize' =>
$image_default_size,
'imageDimensions' =>
$image_dimensions,
'imageEditing' => true,
'imageSizes' =>
$available_image_sizes,
'maxUploadFileSize' =>
$max_upload_size,
// The following flag is required to enable the new Gallery block format on the mobile apps in 5.9.
'__unstableGalleryWithImageBlocks' => true,
);
$theme_settings =
get_classic_theme_supports_block_editor_settings();
foreach ( $theme_settings as $key =>
$value ) { $editor_settings[ $key ] =
$value;
} return $editor_settings;
}/**
* Returns the block editor settings needed to use the Legacy Widget block which
* is not registered by default.
*
* @since 5.8.0
*
* @return array Settings to be used with get_block_editor_settings().
*/