Make WordPress Core


Ignore:
Timestamp:
02/18/2026 06:11:15 AM (7 months ago)
Author:
wildworks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/aria-label.php

    r59925 r61671  
    5050
    5151        $has_aria_label_support = block_has_support( $block_type, array( 'ariaLabel' ), false );
    52         if ( ! $has_aria_label_support ) {
     52        if (
     53                ! $has_aria_label_support ||
     54                wp_should_skip_block_supports_serialization( $block_type, 'ariaLabel' )
     55        ) {
    5356                return array();
    5457        }
Note: See TracChangeset for help on using the changeset viewer.