Editor: Fix typo in image default size setting

Related change in Gutneberg: https://github.com/WordPress/gutenberg/pull/31324

Props mamaduka.
See #52920.



git-svn-id: https://develop.svn.wordpress.org/trunk@50798 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski 2021-04-29 10:10:38 +00:00
parent 13bb1a0959
commit f826a6a858

View File

@ -189,7 +189,7 @@ function get_default_block_editor_settings() {
}
$default_size = get_option( 'image_default_size', 'large' );
$image_default_size = in_array( $default_size, array_keys( $image_size_names ), true ) ? $image_default_size : 'large';
$image_default_size = in_array( $default_size, array_keys( $image_size_names ), true ) ? $default_size : 'large';
$image_dimensions = array();
$all_sizes = wp_get_registered_image_subsizes();