Ticket #32028: 32028.2.diff
File 32028.2.diff, 4.1 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/list-tables.css
527 527 cursor: default; 528 528 height: 30px; 529 529 color: #555; 530 line-height: 30px;530 line-height: 2.5; 531 531 font-size: 12px; 532 532 } 533 533 … … 546 546 padding: 0 10px 3px; 547 547 background: #eee; 548 548 background: rgba( 0, 0, 0, 0.05 ); 549 display: inline-block; 549 550 font-size: 16px; 550 551 font-weight: normal; 552 line-height: 1.3333; 551 553 } 552 554 553 555 .tablenav .tablenav-pages a:hover, … … 1597 1599 1598 1600 .tablenav-pages .pagination-links a { 1599 1601 padding: 8px 20px 11px; 1602 display: inline; 1600 1603 font-size: 18px; 1601 1604 background: rgba(0, 0, 0, 0.05); 1602 1605 } -
src/wp-admin/includes/class-wp-list-table.php
701 701 702 702 $page_links = array(); 703 703 704 $total_pages_before = '<span class="paging-input">'; 705 $total_pages_after = '</span>'; 706 704 707 $disable_first = $disable_last = ''; 705 708 if ( $current == 1 ) { 706 709 $disable_first = ' disabled'; … … 708 711 if ( $current == $total_pages ) { 709 712 $disable_last = ' disabled'; 710 713 } 711 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",714 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 712 715 'first-page' . $disable_first, 713 esc_attr__( 'Go to the first page' ),714 716 esc_url( remove_query_arg( 'paged', $current_url ) ), 717 __( 'First page' ), 715 718 '«' 716 719 ); 717 720 718 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",721 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 719 722 'prev-page' . $disable_first, 720 esc_attr__( 'Go to the previous page' ),721 723 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 724 __( 'Previous page' ), 722 725 '‹' 723 726 ); 724 727 725 728 if ( 'bottom' == $which ) { 726 $html_current_page = $current; 729 $html_current_page = $current; 730 $total_pages_before = '<span id="table-paging" class="paging-input">'; 727 731 } else { 728 $html_current_page = sprintf( "%s<input class='current-page' id='current-page-selector' title='%s' type='text' name='paged' value='%s' size='%d' />", 729 '<label for="current-page-selector" class="screen-reader-text">' . __( 'Select Page' ) . '</label>', 730 esc_attr__( 'Current page' ), 732 $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' />", 733 '<label for="current-page-selector" class="screen-reader-text">' . __( 'Current Page' ) . '</label>', 731 734 $current, 732 735 strlen( $total_pages ) 733 736 ); 734 737 } 735 738 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 736 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>';739 $page_links[] = $total_pages_before . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . $total_pages_after; 737 740 738 $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>", 739 742 'next-page' . $disable_last, 740 esc_attr__( 'Go to the next page' ),741 743 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 744 __( 'Next page' ), 742 745 '›' 743 746 ); 744 747 745 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>",748 $page_links[] = sprintf( "<a class='%s' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>", 746 749 'last-page' . $disable_last, 747 esc_attr__( 'Go to the last page' ),748 750 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 751 __( 'Last page' ), 749 752 '»' 750 753 ); 751 754