Twenty Fifteen: simplify the code used to generate screen reader text for the is_home title.
Props davidakennedy, fixes #30305 git-svn-id: https://develop.svn.wordpress.org/trunk@30304 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eeda30610c
commit
8454637689
@ -24,7 +24,7 @@ get_header(); ?>
|
||||
|
||||
<?php if ( is_home() && ! is_front_page() ) : ?>
|
||||
<header>
|
||||
<h1 class="page-title screen-reader-text"><?php echo esc_html( get_the_title( get_option( 'page_for_posts' ) ) ); ?></h1>
|
||||
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user