mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 05:20:01 +01:00
Docs: Add missing documentation for wp_migrate_old_typography_shape()
.
Follow-up to [51089]. See #52991, #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@51159 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8bb7054907
commit
a663d98561
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user