Make WordPress Core

Ticket #48126: 48126.diff

File 48126.diff, 881 bytes (added by adamsilverstein, 6 years ago)
  • src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php

    diff --git src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php
    index 03bc53b802..af1ee72463 100644
     
    1414        <?php endif; ?>
    1515        <?php $blog_info = get_bloginfo( 'name' ); ?>
    1616        <?php if ( ! empty( $blog_info ) ) : ?>
    17                 <?php if ( is_front_page() && is_home() ) : ?>
     17                <?php if ( ( is_front_page() || is_home() ) && ! is_page() ) : ?>
    1818                        <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    1919                <?php else : ?>
    2020                        <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>