Make WordPress Core


Ignore:
Timestamp:
06/22/2021 09:58:32 AM (3 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Package updates for Beta 3.

The commit updates the WordPress packages for beta 3.

Props nosolosw, noisysocks, youknowriad.
See #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/site-title.php

    r50929 r51199  
    1414 */
    1515function render_block_core_site_title( $attributes ) {
     16    $site_title = get_bloginfo( 'name' );
     17    if ( ! $site_title ) {
     18        return;
     19    }
     20
    1621    $tag_name         = 'h1';
    1722    $align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
     
    2126    }
    2227
    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 );
    2429    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
    2530
Note: See TracChangeset for help on using the changeset viewer.