Ticket #32028: 32028.3.patch
File 32028.3.patch, 3.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/list-tables.css
548 548 background: rgba( 0, 0, 0, 0.05 ); 549 549 font-size: 16px; 550 550 font-weight: normal; 551 display: inline-block; 552 line-height: 25px; 551 553 } 552 554 553 555 .tablenav .tablenav-pages a:hover, -
src/wp-admin/includes/class-wp-list-table.php
696 696 697 697 $page_links = array(); 698 698 699 $disable_first = $disable_last = '';699 $disable_first = $disable_last = $describedby_target_start = $describedby_target_end = ''; 700 700 if ( $current == 1 ) { 701 701 $disable_first = ' disabled'; 702 702 } 703 703 if ( $current == $total_pages ) { 704 704 $disable_last = ' disabled'; 705 705 } 706 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",706 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 707 707 'first-page' . $disable_first, 708 esc_attr__( 'Go to the first page' ),709 708 esc_url( remove_query_arg( 'paged', $current_url ) ), 709 __( 'First page' ), 710 710 '«' 711 711 ); 712 712 713 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",713 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 714 714 'prev-page' . $disable_first, 715 esc_attr__( 'Go to the previous page' ),716 715 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 716 __( 'Previous page' ), 717 717 '‹' 718 718 ); 719 719 720 720 if ( 'bottom' == $which ) { 721 721 $html_current_page = $current; 722 $describedby_target_start = '<span id="table-paging">'; 723 $describedby_target_end = '</span>'; 722 724 } else { 723 $html_current_page = sprintf( "%s<input class='current-page' id='current-page-selector' title='%s' type='text' name='paged' value='%s' size='%d' />", 724 '<label for="current-page-selector" class="screen-reader-text">' . __( 'Select Page' ) . '</label>', 725 esc_attr__( 'Current page' ), 725 $html_current_page = sprintf( "%s<input class='current-page' id='current-page-selector' type='text' name='paged' value='%s' size='%d' aria-describedby='table-paging' />", 726 '<label for="current-page-selector" class="screen-reader-text">' . __( 'Current Page' ) . '</label>', 726 727 $current, 727 728 strlen( $total_pages ) 728 729 ); 729 730 } 730 731 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 731 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>';732 $page_links[] = $describedby_target_start . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . $describedby_target_end; 732 733 733 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",734 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 734 735 'next-page' . $disable_last, 735 esc_attr__( 'Go to the next page' ),736 736 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 737 __( 'Next page' ), 737 738 '›' 738 739 ); 739 740 740 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",741 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 741 742 'last-page' . $disable_last, 742 esc_attr__( 'Go to the last page' ),743 743 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 744 __( 'Last page' ), 744 745 '»' 745 746 ); 746 747