Make WordPress Core


Ignore:
Timestamp:
02/09/2024 06:20:12 PM (17 months ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to Gutenberg 17.7RC1.

This brings the latest and greatest from Gutenberg.
The full changelog is available here
https://github.com/WordPress/gutenberg/releases/tag/v17.7.0-rc.1

Props youknowriad, get_dave.
See #60315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/home-link.php

    r56710 r57578  
    130130function render_block_core_home_link( $attributes, $content, $block ) {
    131131    if ( empty( $attributes['label'] ) ) {
    132         return '';
     132        // Using a fallback for the label attribute allows rendering the block even if no attributes have been set,
     133        // e.g. when using the block as a hooked block.
     134        // Note that the fallback value needs to be kept in sync with the one set in `edit.js` (upon first loading the block in the editor).
     135        $attributes['label'] = __( 'Home' );
    133136    }
    134137    $aria_current = '';
Note: See TracChangeset for help on using the changeset viewer.