Changeset 17168
- Timestamp:
- 12/29/2010 03:58:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-comments-list-table.php
r17113 r17168 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; … … 116 115 'per_page' => $comments_per_page, 117 116 ) ); 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; 118 123 } 119 124 … … 537 542 <?php 538 543 } 544 545 function get_per_page( $comment_status = false ) { 546 return 10; 547 } 539 548 } 540 549
Note: See TracChangeset
for help on using the changeset viewer.