WordPress.org

Make WordPress Core

Ticket #17260: 17260.patch

File 17260.patch, 1.1 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 {
    16451645        display: none;
    16461646}
    16471647
     1648.tablenav .one-page .pagination-links {
     1649        display: none;
     1650}
     1651
    16481652.tablenav .tablenav-pages a,
    16491653.tablenav-pages span.current  {
    16501654        text-decoration: none;
  • 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