Always show # items text. Props johnbillion. fixes #17260

git-svn-id: http://svn.automattic.com/wordpress/trunk@17798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-05-04 19:45:41 +00:00
parent 26e2d8b986
commit a7909cf4b6
4 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1744,7 +1744,8 @@ th.asc:hover span.sorting-indicator {
font-size: 11px;
}
.tablenav .one-page {
.tablenav .no-pages,
.tablenav .one-page .pagination-links {
display: none;
}

View File

@ -528,9 +528,12 @@ class WP_List_Table {
'»'
);
$output .= "\n" . join( "\n", $page_links );
$output .= "\n<span class='pagination-links'>" . join( "\n", $page_links ) . '</span>';
$page_class = $total_pages < 2 ? ' one-page' : '';
if ( $total_pages )
$page_class = $total_pages < 2 ? ' one-page' : '';
else
$page_class = ' no-pages';
$this->_pagination = "<div class='tablenav-pages{$page_class}'>$output</div>";

View File

@ -485,7 +485,7 @@ function wp_default_styles( &$styles ) {
// Any rtl stylesheets that don't have a .dev version for ltr
$no_suffix = array( 'farbtastic' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110501' );
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110504' );
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20101102' );
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );