From ef239c8397054529eaec0371b3341326951bc3f6 Mon Sep 17 00:00:00 2001 From: wildworks Date: Wed, 18 Feb 2026 06:12:41 +0000 Subject: [PATCH] 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 --- wp-includes/block-supports/aria-label.php | 5 ++++- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/block-supports/aria-label.php b/wp-includes/block-supports/aria-label.php index aa559bcacd..b51cd3499e 100644 --- a/wp-includes/block-supports/aria-label.php +++ b/wp-includes/block-supports/aria-label.php @@ -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(); } diff --git a/wp-includes/version.php b/wp-includes/version.php index ed1a1438b9..f9428f15f8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.