Editor: Replace a Gutenberg specific function with the Core equivalent.
This replaces a stray instance of `gutenberg_experimental_set()` with the WordPress Core version of this function, `_wp_array_set()`. A stray `gutenberg` text domain is also removed from a `__()` call. Props walbo, chaion07, JeffPaul. Fixes #53369. Built from https://develop.svn.wordpress.org/trunk@51148 git-svn-id: http://core.svn.wordpress.org/trunk@50757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0e19035dc
commit
f0ac297720
|
@ -988,10 +988,10 @@ function wp_migrate_old_typography_shape( $metadata ) {
|
||||||
if ( null !== $support_for_key ) {
|
if ( null !== $support_for_key ) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
/* translators: %1$s: Block type, %2$s: typography supports key e.g: fontSize, lineHeight etc... */
|
/* translators: %1$s: Block type, %2$s: typography supports key e.g: fontSize, lineHeight etc... */
|
||||||
sprintf( __( 'Block %1$s is declaring %2$s support on block.json under supports.%2$s. %2$s support is now declared under supports.typography.%2$s.', 'gutenberg' ), $metadata['name'], $typography_key ),
|
sprintf( __( 'Block %1$s is declaring %2$s support on block.json under supports.%2$s. %2$s support is now declared under supports.typography.%2$s.' ), $metadata['name'], $typography_key ),
|
||||||
headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
|
headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
|
||||||
);
|
);
|
||||||
gutenberg_experimental_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key );
|
_wp_array_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key );
|
||||||
unset( $metadata['supports'][ $typography_key ] );
|
unset( $metadata['supports'][ $typography_key ] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-beta1-51147';
|
$wp_version = '5.8-beta1-51148';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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