WordPress.org

Make WordPress Core

Ticket #42763: 42763.2.diff

File 42763.2.diff, 697 bytes (added by Hareesh Pillai, 3 months ago)

Patch refreshed

  • src/wp-admin/includes/class-wp-list-table.php

     
    906906                        $disable_first = true;
    907907                        $disable_prev  = true;
    908908                }
    909                 if ( 2 == $current ) {
    910                         $disable_first = true;
    911                 }
    912909                if ( $total_pages == $current ) {
    913910                        $disable_last = true;
    914911                        $disable_next = true;
    915912                }
    916                 if ( $total_pages - 1 == $current ) {
    917                         $disable_last = true;
    918                 }
    919913
    920914                if ( $disable_first ) {
    921915                        $page_links[] = '<span class="tablenav-pages-navspan button disabled" aria-hidden="true">&laquo;</span>';