Changeset 42638
- Timestamp:
- 02/02/2018 07:37:10 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r42343 r42638 657 657 */ 658 658 private function _display_rows( $posts, $level = 0 ) { 659 $post_type = $this->screen->post_type; 660 659 661 // Create array of post IDs. 660 662 $post_ids = array(); … … 664 666 } 665 667 666 $this->comment_pending_count = get_pending_comments_num( $post_ids ); 668 if ( post_type_supports( $post_type, 'comments' ) ) { 669 $this->comment_pending_count = get_pending_comments_num( $post_ids ); 670 } 667 671 668 672 foreach ( $posts as $post ) {
Note: See TracChangeset
for help on using the changeset viewer.