Changeset 51199 for trunk/src/wp-includes/blocks/site-title.php
- Timestamp:
- 06/22/2021 09:58:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/site-title.php
r50929 r51199 14 14 */ 15 15 function render_block_core_site_title( $attributes ) { 16 $site_title = get_bloginfo( 'name' ); 17 if ( ! $site_title ) { 18 return; 19 } 20 16 21 $tag_name = 'h1'; 17 22 $align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}"; … … 21 26 } 22 27 23 $link = sprintf( '<a href="%1$s" rel="home">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ));28 $link = sprintf( '<a href="%1$s" rel="home">%2$s</a>', get_bloginfo( 'url' ), $site_title ); 24 29 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) ); 25 30
Note: See TracChangeset
for help on using the changeset viewer.