Make WordPress Core

Changeset 30304


Ignore:
Timestamp:
11/11/2014 07:23:47 PM (10 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: simplify the code used to generate screen reader text for the is_home title.

Props davidakennedy, fixes #30305

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/index.php

    r30216 r30304  
    2525            <?php if ( is_home() && ! is_front_page() ) : ?>
    2626                <header>
    27                     <h1 class="page-title screen-reader-text"><?php echo esc_html( get_the_title( get_option( 'page_for_posts' ) ) ); ?></h1>
     27                    <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
    2828                </header>
    2929            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.