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:
parent
334c279d5b
commit
4e8ff35289
|
@ -34,7 +34,7 @@ $header_class = $show_title ? 'site-title' : 'screen-reader-text';
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?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">
|
<p class="site-description">
|
||||||
<?php echo $description; // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
<?php echo $description; // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
$wrapper_classes = 'site-header';
|
$wrapper_classes = 'site-header';
|
||||||
$wrapper_classes .= has_custom_logo() ? ' has-logo' : '';
|
$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' : '';
|
$wrapper_classes .= has_nav_menu( 'primary' ) ? ' has-menu' : '';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue