Ticket #15983: 15983.diff
File 15983.diff, 1.7 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-list-table.php
472 472 473 473 extract( $this->_pagination_args ); 474 474 475 if ( $total_pages < 2 )476 return;477 478 475 $output = '<span class="displaying-num">' . sprintf( _n( '1 item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>'; 479 476 480 477 $current = $this->get_pagenum(); … … 525 522 526 523 $output .= "\n" . join( "\n", $page_links ); 527 524 528 $ this->_pagination = "<div class='tablenav-pages'>$output</div>";525 $page_class = $total_pages < 2 ? ' one-page' : ''; 529 526 527 $this->_pagination = "<div class='tablenav-pages{$page_class}'>$output</div>"; 528 530 529 echo $this->_pagination; 531 530 } 532 531 -
wp-admin/js/list-table.dev.js
102 102 103 103 this.set_total_pages(response.total_pages); 104 104 105 if ( response.total_pages > 1 ) 106 $('.tablenav-pages').removeClass('one-page'); 107 105 108 $('.current-page').val($.query.GET('paged')); 106 109 107 110 $('th.column-cb :input').attr('checked', false); -
wp-admin/css/wp-admin.dev.css
1476 1476 font-size: 11px; 1477 1477 } 1478 1478 1479 .tablenav .one-page { 1480 display: none; 1481 } 1482 1479 1483 .tablenav .tablenav-pages a, 1480 1484 .tablenav-pages span.current { 1481 1485 text-decoration: none;