Make WordPress Core


Ignore:
Timestamp:
11/19/2014 06:26:17 PM (11 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.php

    r26258 r30389  
    5252    <div class="entry-content">
    5353        <?php
    54             the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );
     54            /* translators: %s: Name of current post */
     55            the_content( sprintf(
     56                esc_html__( 'Continue reading %s', 'twentyfourteen' ),
     57                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     58            ) );
     59
    5560            wp_link_pages( array(
    5661                'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
Note: See TracChangeset for help on using the changeset viewer.