diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index bf87b0f82e..020887acda 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -975,6 +975,16 @@ function block_has_support( $block_type, $feature, $default = false ) { return true === $block_support || is_array( $block_support ); } +/** + * Converts typography keys declared under `supports.*` to `supports.typography.*`. + * + * Displays a `_doing_it_wrong()` notice when a block using the older format is detected. + * + * @since 5.8.0 + * + * @param array $metadata Metadata for registering a block type. + * @return array Filtered metadata for registering a block type. + */ function wp_migrate_old_typography_shape( $metadata ) { $typography_keys = array( '__experimentalFontFamily', diff --git a/wp-includes/version.php b/wp-includes/version.php index 2cdb7de3ff..178d5c7a4e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta1-51158'; +$wp_version = '5.8-beta1-51159'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.