Making WordPress.org


Ignore:
Timestamp:
10/07/2015 09:47:20 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Base: Add post titles to Continue Reading links for screen readers.

Fixes #1289
Props pixolin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base/loop-attachment.php

    r2 r1950  
    102102                        <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
    103103
    104 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'wordcampbase' ) ); ?>
     104<?php the_content( sprintf(
     105    // translators: The title of the post to continue reading
     106    __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'wordcampbase' ),
     107    the_title( '<span class="screen-reader-text">', '</span> ', false )
     108) ); ?>
    105109<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wordcampbase' ), 'after' => '</div>' ) ); ?>
    106110
Note: See TracChangeset for help on using the changeset viewer.