Changeset 59907 for trunk/src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php
- Timestamp:
- 03/03/2025 06:43:08 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/template-parts/header/site-branding.php
r46827 r59907 14 14 <?php endif; ?> 15 15 <?php $blog_info = get_bloginfo( 'name' ); ?> 16 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 16 17 <?php if ( ! empty( $blog_info ) ) : ?> 17 18 <?php if ( is_front_page() && is_home() ) : ?> 18 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" ><?php bloginfo( 'name' ); ?></a></h1>19 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></h1> 19 20 <?php else : ?> 20 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" ><?php bloginfo( 'name' ); ?></a></p>21 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></p> 21 22 <?php endif; ?> 22 23 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.