- Timestamp:
- 03/24/2021 07:31:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r50295 r50570 251 251 } 252 252 253 $default_size = get_option( 'image_default_size', 'large' ); 254 $image_default_size = in_array( $default_size, array_keys( $image_size_names ), true ) ? $image_default_size : 'large'; 255 253 256 $image_dimensions = array(); 254 257 $all_sizes = wp_get_registered_image_subsizes(); … … 324 327 'defaultEditorStyles' => $default_editor_styles, 325 328 'imageSizes' => $available_image_sizes, 329 'imageDefaultSize' => $image_default_size, 326 330 'imageDimensions' => $image_dimensions, 327 331 'richEditingEnabled' => user_can_richedit(),
Note: See TracChangeset
for help on using the changeset viewer.