Ticket #32028: 32028.patch
File 32028.patch, 4.6 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/list-tables.css
495 495 padding: 0 2px; 496 496 } 497 497 .tablenav-pages .current-page { 498 padding-top: 0;498 padding-top: 2px; 499 499 text-align: center; 500 font-size: 13px; 500 501 } 501 502 .tablenav-pages .next-page { 502 503 margin-left: 2px; … … 525 526 height: 30px; 526 527 color: #555; 527 528 line-height: 30px; 528 font-size: 12px;529 529 } 530 530 531 531 .tablenav .no-pages, … … 565 565 .tablenav .displaying-num { 566 566 margin-right: 2px; 567 567 color: #777; 568 font-size: 12px;569 568 font-style: italic; 570 569 } 571 570 … … 1551 1550 .tablenav.bottom .displaying-num { 1552 1551 position: absolute; 1553 1552 right: 0; 1554 top: 10px;1553 top: 5px; 1555 1554 font-size: 14px; 1556 1555 } 1557 1556 … … 1574 1573 height: 0; 1575 1574 } 1576 1575 1577 .tablenav-pages .pagination-links .paging-input{1578 font-size: 1 8px;1576 .tablenav-pages .pagination-links { 1577 font-size: 16px; 1579 1578 } 1580 1579 1581 1580 .tablenav-pages .pagination-links a { … … 1585 1584 } 1586 1585 1587 1586 .tablenav-pages .pagination-links .current-page { 1588 padding: 10px;1589 font-size: 1 4px;1587 padding: 9px 10px 10px; 1588 font-size: 16px; 1590 1589 } 1591 1590 1592 1591 /* WP List Table Adjustments: General */ -
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