Changeset 52349 for trunk/src/wp-includes/block-editor.php
- Timestamp:
- 12/09/2021 03:23:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-editor.php
r52322 r52349 202 202 203 203 $editor_settings = array( 204 'alignWide' => get_theme_support( 'align-wide' ), 205 'allowedBlockTypes' => true, 206 'allowedMimeTypes' => get_allowed_mime_types(), 207 'defaultEditorStyles' => $default_editor_styles, 208 'blockCategories' => get_default_block_categories(), 209 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), 210 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), 211 'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ), 212 'enableCustomLineHeight' => get_theme_support( 'custom-line-height' ), 213 'enableCustomSpacing' => get_theme_support( 'custom-spacing' ), 214 'enableCustomUnits' => get_theme_support( 'custom-units' ), 215 'isRTL' => is_rtl(), 216 'imageDefaultSize' => $image_default_size, 217 'imageDimensions' => $image_dimensions, 218 'imageEditing' => true, 219 'imageSizes' => $available_image_sizes, 220 'maxUploadFileSize' => $max_upload_size, 204 'alignWide' => get_theme_support( 'align-wide' ), 205 'allowedBlockTypes' => true, 206 'allowedMimeTypes' => get_allowed_mime_types(), 207 'defaultEditorStyles' => $default_editor_styles, 208 'blockCategories' => get_default_block_categories(), 209 'disableCustomColors' => get_theme_support( 'disable-custom-colors' ), 210 'disableCustomFontSizes' => get_theme_support( 'disable-custom-font-sizes' ), 211 'disableCustomGradients' => get_theme_support( 'disable-custom-gradients' ), 212 'enableCustomLineHeight' => get_theme_support( 'custom-line-height' ), 213 'enableCustomSpacing' => get_theme_support( 'custom-spacing' ), 214 'enableCustomUnits' => get_theme_support( 'custom-units' ), 215 'isRTL' => is_rtl(), 216 'imageDefaultSize' => $image_default_size, 217 'imageDimensions' => $image_dimensions, 218 'imageEditing' => true, 219 'imageSizes' => $available_image_sizes, 220 'maxUploadFileSize' => $max_upload_size, 221 // The following flag is required to enable the new Gallery block format on the mobile apps in 5.9. 222 '__unstableGalleryWithImageBlocks' => true, 221 223 ); 222 224
Note: See TracChangeset
for help on using the changeset viewer.