WordPress.org

Make WordPress Core

Ticket #4300: 4300.diff

File 4300.diff, 724 bytes (added by rob1n, 14 years ago)
  • wp-admin/edit-comments.php

     
    7979        $page = (int) $_GET['apage'];
    8080else
    8181        $page = 1;
     82
    8283$start = $offset = ( $page - 1 ) * 20;
    8384
    8485list($_comments, $total) = _wp_get_comment_list( isset($_GET['s']) ? $_GET['s'] : false, $start, 25 ); // Grab a few extra
     
    8788$extra_comments = array_slice($_comments, 20);
    8889
    8990$page_links = paginate_links( array(
    90         'base' => 'edit-comments.php?%_%',
    91         'format' => 'apage=%#%',
     91        'base' => add_query_arg( 'apage', '%_%' ),
     92        'format' => '',
    9293        'total' => ceil($total / 20),
    9394        'current' => $page
    9495));