diff --git a/lib/block-supports/typography.php b/lib/block-supports/typography.php index 6cfae5b8cf07eb..dcfad2bbe55b4e 100644 --- a/lib/block-supports/typography.php +++ b/lib/block-supports/typography.php @@ -53,6 +53,12 @@ function gutenberg_register_typography_support( $block_type ) { 'type' => 'string', ); } + + if ( $has_font_family_support && ! array_key_exists( 'fontFamily', $block_type->attributes ) ) { + $block_type->attributes['fontFamily'] = array( + 'type' => 'string', + ); + } } /**