WordPress.org

Make WordPress Core

Ticket #17260: 17260.2.patch

File 17260.2.patch, 1.0 KB (added by johnbillion, 7 years ago)
  • wp-admin/css/wp-admin.dev.css

     
    16411641        font-size: 11px;
    16421642}
    16431643
    1644 .tablenav .one-page {
     1644.tablenav .no-pages,
     1645.tablenav .one-page .pagination-links {
    16451646        display: none;
    16461647}
    16471648
  • wp-admin/includes/class-wp-list-table.php

     
    528528                        '»'
    529529                );
    530530
    531                 $output .= "\n" . join( "\n", $page_links );
     531                $output .= "\n<span class='pagination-links'>" . join( "\n", $page_links ) . '</span>';
    532532
    533                 $page_class = $total_pages < 2 ? ' one-page' : '';
     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>";
    536539