Make WordPress Core


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

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

Props davidakennedy, lancewillett. Fixes #30178.

File:
1 edited

Legend:

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

    r27331 r30390  
    3939    <?php else : ?>
    4040    <div class="entry-content">
    41         <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentythirteen' ) ); ?>
    42         <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
     41        <?php
     42            /* translators: %s: Name of current post */
     43            the_content( sprintf(
     44                esc_html__( 'Continue reading %s', 'twentythirteen' ),
     45                the_title( '<span class="screen-reader-text">', '</span> <span class="meta-nav">&rarr;</span>', false )
     46            ) );
     47
     48            wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
     49        ?>
    4350    </div><!-- .entry-content -->
    4451    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.