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:
Ian Stewart 2014-11-11 19:23:47 +00:00
parent eeda30610c
commit 8454637689
1 changed files with 1 additions and 1 deletions

View File

@ -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; ?>