Make WordPress Core

Changeset 30834


Ignore:
Timestamp:
12/12/2014 06:36:02 PM (10 years ago)
Author:
lancewillett
Message:

Twenty Fifteen: update archive pagination links to use aria-hidden for better accessibility.

Props SergeyBiryukov, fixes #30152.

File:
1 edited

Legend:

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

    r30781 r30834  
    3131            // Previous/next post navigation.
    3232            the_post_navigation( array(
    33                 'next_text' => _x( '<span class="meta-nav">Next <span class="screen-reader-text">post: </span></span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ),
    34                 'prev_text' => _x( '<span class="meta-nav">Previous <span class="screen-reader-text">post: </span></span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' )
     33                'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
     34                    '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
     35                    '<span class="post-title">%title</span>',
     36                'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
     37                    '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
     38                    '<span class="post-title">%title</span>',
    3539            ) );
    3640
Note: See TracChangeset for help on using the changeset viewer.