Make WordPress Core

Ticket #40833: 40833.diff

File 40833.diff, 834 bytes (added by palmiak, 7 years ago)
  • wp-includes/general-template.php

     
    33613361        endif;
    33623362        for ( $n = 1; $n <= $total; $n++ ) :
    33633363                if ( $n == $current ) :
    3364                         $page_links[] = "<span class='page-numbers current'>" . $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number'] . "</span>";
     3364                        $page_links[] = "<span aria-current='page' class='page-numbers current'>" . $args['before_page_number'] . number_format_i18n( $n ) . $args['after_page_number'] . "</span>";
    33653365                        $dots = true;
    33663366                else :
    33673367                        if ( $args['show_all'] || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :