Make WordPress Core


Ignore:
Timestamp:
05/04/2011 07:45:41 PM (13 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-list-table.php

    r17771 r17798  
    529529        );
    530530
    531         $output .= "\n" . join( "\n", $page_links );
    532 
    533         $page_class = $total_pages < 2 ? ' one-page' : '';
     531        $output .= "\n<span class='pagination-links'>" . join( "\n", $page_links ) . '</span>';
     532
     533        if ( $total_pages )
     534            $page_class = $total_pages < 2 ? ' one-page' : '';
     535        else
     536            $page_class = ' no-pages';
    534537
    535538        $this->_pagination = "<div class='tablenav-pages{$page_class}'>$output</div>";
Note: See TracChangeset for help on using the changeset viewer.