Ticket #15998: 15998-2.diff
File 15998-2.diff, 1.2 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-comments-list-table.php
54 54 $orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : ''; 55 55 $order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : ''; 56 56 57 $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); 58 $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); 57 $comments_per_page = $this->get_per_page( $comment_status ); 59 58 60 59 $doing_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX; 61 60 … … 116 115 'per_page' => $comments_per_page, 117 116 ) ); 118 117 } 118 119 function get_per_page( $comment_status = 'all' ) { 120 $comments_per_page = $this->get_items_per_page( 'edit_comments_per_page' ); 121 $comments_per_page = apply_filters( 'comments_per_page', $comments_per_page, $comment_status ); 122 return $comments_per_page; 123 } 119 124 120 125 function no_items() { 121 126 global $comment_status; … … 536 541 </table> 537 542 <?php 538 543 } 544 545 function get_per_page( $comment_status = false ) { 546 return 10; 547 } 539 548 } 540 549 541 550 ?>