Ticket #4300: 4300.diff
File 4300.diff, 724 bytes (added by , 14 years ago) |
---|
-
wp-admin/edit-comments.php
79 79 $page = (int) $_GET['apage']; 80 80 else 81 81 $page = 1; 82 82 83 $start = $offset = ( $page - 1 ) * 20; 83 84 84 85 list($_comments, $total) = _wp_get_comment_list( isset($_GET['s']) ? $_GET['s'] : false, $start, 25 ); // Grab a few extra … … 87 88 $extra_comments = array_slice($_comments, 20); 88 89 89 90 $page_links = paginate_links( array( 90 'base' => 'edit-comments.php?%_%',91 'format' => ' apage=%#%',91 'base' => add_query_arg( 'apage', '%_%' ), 92 'format' => '', 92 93 'total' => ceil($total / 20), 93 94 'current' => $page 94 95 ));