Changeset 57578 for trunk/src/wp-includes/blocks/home-link.php
- Timestamp:
- 02/09/2024 06:20:12 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/home-link.php
r56710 r57578 130 130 function render_block_core_home_link( $attributes, $content, $block ) { 131 131 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' ); 133 136 } 134 137 $aria_current = '';
Note: See TracChangeset
for help on using the changeset viewer.