Make WordPress Core


Ignore:
Timestamp:
01/21/2021 12:15:47 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Consistently use Yoda condition for display_title_and_tagline setting.

Props mukesh27.
Fixes #52329.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/template-parts/header/site-branding.php

    r49826 r49994  
    3535        <?php endif; ?>
    3636
    37         <?php if ( $description && get_theme_mod( 'display_title_and_tagline', true ) === true ) : ?>
     37        <?php if ( $description && true === get_theme_mod( 'display_title_and_tagline', true ) ) : ?>
    3838                <p class="site-description">
    3939                        <?php echo $description; // phpcs:ignore WordPress.Security.EscapeOutput ?>
Note: See TracChangeset for help on using the changeset viewer.