Block Support: Allow serialization skipping for ariaLabel
Allow skipping serialization for the `ariaLabel` block support. This enables applying the `aria-label` attribute to inner elements instead of the block wrapper. Follow-up to [59925]. Props mukesh27, wildworks. Fixes #64594. Built from https://develop.svn.wordpress.org/trunk@61671 git-svn-id: http://core.svn.wordpress.org/trunk@60979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -49,7 +49,10 @@ function wp_apply_aria_label_support( $block_type, $block_attributes ) {
|
||||
}
|
||||
|
||||
$has_aria_label_support = block_has_support( $block_type, array( 'ariaLabel' ), false );
|
||||
if ( ! $has_aria_label_support ) {
|
||||
if (
|
||||
! $has_aria_label_support ||
|
||||
wp_should_skip_block_supports_serialization( $block_type, 'ariaLabel' )
|
||||
) {
|
||||
return array();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.0-alpha-61670';
|
||||
$wp_version = '7.0-alpha-61671';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user