Make WordPress Core


Ignore:
Timestamp:
10/07/2026 09:28:31 AM (11 hours ago)
Author:
wildworks
Message:

Block Bindings: Add support for Icon block's icon attribute.

Enable Block Bindings support for the Icon block's icon attribute, so the displayed icon can be supplied by a block bindings source. This also makes pattern overrides available for the Icon block.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/12708

Props wildworks, yashjawale.
Fixes #65725.

File:
1 edited

Legend:

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

    r62518 r64225  
    136136 * @since 6.9.0
    137137 * @since 7.1.0 Added support for the List Item block.
     138 * @since 7.2.0 Added support for the Icon block.
    138139 *
    139140 * @param string $block_type The block type whose supported attributes are being retrieved.
    … …  
    150151                'core/navigation-link'    => array( 'url' ),
    151152                'core/navigation-submenu' => array( 'url' ),
     153                'core/icon'               => array( 'icon' ),
    152154        );
    153155
Note: See TracChangeset for help on using the changeset viewer.