Make WordPress Core


Ignore:
Timestamp:
11/19/2014 06:26:17 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: replace ellipses appended to automatically generated excerpts with both ellipses and a "Continue Reading" link to meet accessibility-ready requirements.

Props davidakennedy, lancewillett. Fixes #30176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-aside.php

    r26258 r30389  
    4444    <div class="entry-content">
    4545        <?php
    46             the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     46            /* translators: %s: Name of current post */
     47            the_content( sprintf(
     48                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     49                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     50            ) );
     51
    4752            wp_link_pages( array(
    4853                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
Note: See TracChangeset for help on using the changeset viewer.