Make WordPress Core


Ignore:
Timestamp:
03/04/2025 01:04:49 PM (2 months ago)
Author:
Mamaduka
Message:

Block support: Add server-side processing for ariaLabel.

Adds server-side registration for ariaLabel block support and its required fields. Fully enabling feature support for dynamic blocks and consumers using ServerSideRender component.

Props wildworks, fabiankaegy, joemcgill, poena.
Fixes #62919.

File:
1 edited

Legend:

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

    r59093 r59925  
    182182    // This is hardcoded on purpose.
    183183    // We only support a fixed list of attributes.
    184     $attributes_to_merge = array( 'style', 'class', 'id' );
     184    $attributes_to_merge = array( 'style', 'class', 'id', 'aria-label' );
    185185    $attributes          = array();
    186186    foreach ( $attributes_to_merge as $attribute_name ) {
Note: See TracChangeset for help on using the changeset viewer.