mirror of
git://develop.git.wordpress.org/
synced 2025-04-06 21:23:29 +02:00
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:
parent
13bb1a0959
commit
f826a6a858
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user