diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index d8616b4573e87..3d27222f00bc1 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -135,11 +135,7 @@ public static function parse_settings( $editor_id, $settings ) { } } - if ( $set['editor_height'] < 50 ) { - $set['editor_height'] = 50; - } elseif ( $set['editor_height'] > 5000 ) { - $set['editor_height'] = 5000; - } + $set['editor_height'] = clamp( $set['editor_height'], 50, 5000 ); return $set; }