Ticket #15974: 15974.diff
| File 15974.diff, 2.5 KB (added by , 15 years ago) |
|---|
-
wp-admin/includes/class-wp-list-table.php
487 487 'first-page', 488 488 esc_attr__( 'Go to the first page' ), 489 489 esc_url( remove_query_arg( 'paged', $current_url ) ), 490 '««'490 is_rtl() ? '»' : '«' 491 491 ); 492 492 493 493 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 494 494 'prev-page', 495 495 esc_attr__( 'Go to the previous page' ), 496 496 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), 497 '«'497 is_rtl() ? '›' : '‹' 498 498 ); 499 499 500 500 $html_current_page = sprintf( "<input class='current-page' title='%s' type='text' name='%s' value='%s' size='%d' />", … … 504 504 strlen( $total_pages ) 505 505 ); 506 506 $html_total_pages = sprintf( "<span class='total-pages'>%s</span>", number_format_i18n( $total_pages ) ); 507 $page_links[] = sprintf( _x( '%s of %s', 'paging' ), $html_current_page, $html_total_pages );507 $page_links[] = '<span class="paging-input">' . sprintf( _x( '%1$s of %2$s', 'paging' ), $html_current_page, $html_total_pages ) . '</span>'; 508 508 509 509 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 510 510 'next-page', 511 511 esc_attr__( 'Go to the next page' ), 512 512 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), 513 '»'513 is_rtl() ? '‹' : '›' 514 514 ); 515 515 516 516 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 517 517 'last-page', 518 518 esc_attr__( 'Go to the last page' ), 519 519 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ), 520 '»»'520 is_rtl() ? '«' : '»' 521 521 ); 522 522 523 $output .= join( "\n", $page_links ); 523 if ( is_rtl() ) 524 $page_links = array_reverse( $page_links ); 524 525 526 $output .= "\n" . join( "\n", $page_links ); 527 525 528 $this->_pagination = "<div class='tablenav-pages'>$output</div>"; 526 529 527 530 echo $this->_pagination; -
wp-admin/css/wp-admin-rtl.dev.css
89 89 } 90 90 .tablenav .tablenav-pages { 91 91 float: left; 92 direction: ltr; 92 93 } 94 .tablenav .tablenav-pages .paging-input { 95 direction: rtl; 96 } 93 97 .tablenav .displaying-num { 94 98 margin-right: 0; 99 float: right; 95 100 margin-left: 10px; 96 101 font-family: Tahoma, Arial, sans-serif; 97 102 }