diff --git a/lib/class-wp-theme-json-gutenberg.php b/lib/class-wp-theme-json-gutenberg.php index 90931175dd908..591ead35fb78a 100644 --- a/lib/class-wp-theme-json-gutenberg.php +++ b/lib/class-wp-theme-json-gutenberg.php @@ -819,11 +819,10 @@ protected static function sanitize( $input, $valid_block_names, $valid_element_n $schema['settings'] = static::VALID_SETTINGS; $schema['settings']['blocks'] = $schema_settings_blocks; - // For settings.typography.fontFamilies, make the $schema have all indexes present in the $input. if ( isset( $input['settings']['typography']['fontFamilies'] ) ) { // Do not handle the cases where the sanitization is called before font families are merged, since it will be handled again later. - if ( isset( $input['settings']['typography']['fontFamilies']['theme']) || isset( $input['settings']['typography']['fontFamilies']['custom'] ) ) { + if ( isset( $input['settings']['typography']['fontFamilies']['theme'] ) || isset( $input['settings']['typography']['fontFamilies']['custom'] ) ) { return $output; } foreach ( $input['settings']['typography']['fontFamilies'] as $font_family_key => $value ) {