WordPress.org

Make WordPress Core

Ticket #42763: 42763.diff

File 42763.diff, 1018 bytes (added by ronakganatra, 4 years ago)
  • src/wp-admin/includes/class-wp-list-table.php

     src/wp-admin/includes/class-wp-list-table.php | 10 ++--------
     1 file changed, 2 insertions(+), 8 deletions(-)
    
    diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
    index ef6b633a3a..90174f82e2 100644
    a b foreach ( $this->modes as $mode => $title ) { 
    800800                $total_pages_after  = '</span></span>';
    801801
    802802                $disable_first = $disable_last = $disable_prev = $disable_next = false;
    803 
     803       
    804804                if ( $current == 1 ) {
    805805                        $disable_first = true;
    806                         $disable_prev  = true;
    807                 }
    808                 if ( $current == 2 ) {
    809                         $disable_first = true;
     806                        $disable_prev = true;
    810807                }
    811808                if ( $current == $total_pages ) {
    812809                        $disable_last = true;
    813810                        $disable_next = true;
    814811                }
    815                 if ( $current == $total_pages - 1 ) {
    816                         $disable_last = true;
    817                 }
    818812
    819813                if ( $disable_first ) {
    820814                        $page_links[] = '<span class="tablenav-pages-navspan" aria-hidden="true">&laquo;</span>';