mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
Docs: Add missing documentation for wp_migrate_old_typography_shape()
.
Follow-up to [51089]. See #52991, #52628. Built from https://develop.svn.wordpress.org/trunk@51159 git-svn-id: http://core.svn.wordpress.org/trunk@50768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0def70a94c
commit
200a5058e0
@ -975,6 +975,16 @@ function block_has_support( $block_type, $feature, $default = false ) {
|
|||||||
return true === $block_support || is_array( $block_support );
|
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 ) {
|
function wp_migrate_old_typography_shape( $metadata ) {
|
||||||
$typography_keys = array(
|
$typography_keys = array(
|
||||||
'__experimentalFontFamily',
|
'__experimentalFontFamily',
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user