Make WordPress Core

Ticket #30152: 30152.patch

File 30152.patch, 3.0 KB (added by afercia, 11 years ago)
  • src/wp-content/themes/twentyfifteen/inc/template-tags.php

     
    2424                return;
    2525        }
    2626
    27         // Set up paginated links.
     27        // Set up paginated links. Keep the space before the closing span: screen readers need to have separated words.
    2828        $links = paginate_links( array(
    29                 'prev_text'          => esc_html__( 'Previous', 'twentyfifteen' ),
    30                 'next_text'          => esc_html__( 'Next', 'twentyfifteen' ),
    31                 'before_page_number' => '<span class="meta-nav">' . esc_html__( 'Page', 'twentyfifteen' ) . '</span>',
     29                'prev_text'          => esc_html__( 'Previous page', 'twentyfifteen' ),
     30                'next_text'          => esc_html__( 'Next page', 'twentyfifteen' ),
     31                'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'twentyfifteen' ) . ' </span>',
    3232        ) );
    3333
    3434        if ( $links ) :
     
    7777                        if ( is_attachment() ) :
    7878                                previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Published In</span><span class="post-title">%title</span>', 'Parent post link', 'twentyfifteen' ) );
    7979                        else :
    80                                 previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Previous</span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) );
    81                                 next_post_link( '<div class="nav-next' . $next_class . '">%link</div>', _x( '<span class="meta-nav">Next</span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ) );
     80                                previous_post_link( '<div class="nav-previous' . $prev_class . '">%link</div>', _x( '<span class="meta-nav">Previous <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Previous post link', 'twentyfifteen' ) );
     81                                next_post_link( '<div class="nav-next' . $next_class . '">%link</div>', _x( '<span class="meta-nav">Next <span class="screen-reader-text">post:</span></span><span class="post-title">%title</span>', 'Next post link', 'twentyfifteen' ) );
    8282                        endif;
    8383                        ?>
    8484                </div><!-- .nav-links -->
  • src/wp-content/themes/twentyfifteen/style.css

     
    998998        margin-right: 0.3333em;
    999999}
    10001000
     1001.current .screen-reader-text {
     1002        position: static !important;
     1003}
     1004
    10011005.pagination .page-numbers {
    10021006        display: none;
    10031007        line-height: 3.2em;
    10041008        padding: 0 0.6667em;
     1009}
     1010
     1011.pagination .page-numbers.current {
    10051012        text-transform: uppercase;
    10061013}
    10071014
     
    26552662                padding: 0;
    26562663        }
    26572664
     2665        .current .screen-reader-text {
     2666                position: absolute !important;
     2667        }
     2668
    26582669        .pagination .page-numbers {
    26592670                display: inline-block;
    26602671        }
    26612672
    2662         .pagination .meta-nav {
    2663                 display: none;
    2664         }
    2665 
    26662673        .image-navigation {
    26672674                padding: 0 9.0909%;
    26682675        }