Make WordPress Core


Ignore:
Timestamp:
06/22/2021 09:58:32 AM (4 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-tagline.php

    r50929 r51199  
    1414 */
    1515function render_block_core_site_tagline( $attributes ) {
     16    $site_tagline = get_bloginfo( 'description' );
     17    if ( ! $site_tagline ) {
     18        return;
     19    }
    1620    $align_class_name   = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
    1721    $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
     
    2024        '<p %1$s>%2$s</p>',
    2125        $wrapper_attributes,
    22         get_bloginfo( 'description' )
     26        $site_tagline
    2327    );
    2428}
Note: See TracChangeset for help on using the changeset viewer.