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

Props mukesh27.
Fixes #52329.
Built from https://develop.svn.wordpress.org/trunk@49994


git-svn-id: http://core.svn.wordpress.org/trunk@49695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-01-21 12:16:59 +00:00
parent 334c279d5b
commit 4e8ff35289
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ $header_class = $show_title ? 'site-title' : 'screen-reader-text';
<?php endif; ?>
<?php endif; ?>
<?php if ( $description && get_theme_mod( 'display_title_and_tagline', true ) === true ) : ?>
<?php if ( $description && true === get_theme_mod( 'display_title_and_tagline', true ) ) : ?>
<p class="site-description">
<?php echo $description; // phpcs:ignore WordPress.Security.EscapeOutput ?>
</p>

View File

@ -9,7 +9,7 @@
$wrapper_classes = 'site-header';
$wrapper_classes .= has_custom_logo() ? ' has-logo' : '';
$wrapper_classes .= true === get_theme_mod( 'display_title_and_tagline', true ) ? ' has-title-and-tagline' : '';
$wrapper_classes .= ( true === get_theme_mod( 'display_title_and_tagline', true ) ) ? ' has-title-and-tagline' : '';
$wrapper_classes .= has_nav_menu( 'primary' ) ? ' has-menu' : '';
?>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.7-alpha-49993';
$wp_version = '5.7-alpha-49994';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.