Make WordPress Core


Ignore:
Timestamp:
11/12/2014 11:25:51 PM (8 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: adding context to pagination links for screenreaders.

Props afercia, iamtakashi, fixes #30152

File:
1 edited

Legend:

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

    r30216 r30316  
    3535            <?php
    3636                the_pagination( array(
    37                     'before_page_number' => '<span class="meta-nav">' . __( 'Page', 'twentyfifteen' ) . '</span>',
     37                    'prev_text'          => __( 'Previous page', 'twentyfifteen' ),
     38                    'next_text'          => __( 'Next page', 'twentyfifteen' ),
     39                    'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
    3840                ) );
    3941            ?>
Note: See TracChangeset for help on using the changeset viewer.