Changeset 51167 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 06/15/2021 09:36:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r51160 r51167 987 987 */ 988 988 function wp_migrate_old_typography_shape( $metadata ) { 989 if ( ! isset( $metadata['supports'] ) ) { 990 return $metadata; 991 } 992 989 993 $typography_keys = array( 990 994 '__experimentalFontFamily', … … 997 1001 'lineHeight', 998 1002 ); 1003 999 1004 foreach ( $typography_keys as $typography_key ) { 1000 1005 $support_for_key = _wp_array_get( $metadata['supports'], array( $typography_key ), null ); 1006 1001 1007 if ( null !== $support_for_key ) { 1002 1008 _doing_it_wrong( … … 1013 1019 '5.8.0' 1014 1020 ); 1021 1015 1022 _wp_array_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key ); 1016 1023 unset( $metadata['supports'][ $typography_key ] ); 1017 1024 } 1018 1025 } 1026 1019 1027 return $metadata; 1020 1028 }
Note: See TracChangeset
for help on using the changeset viewer.