Changeset 35222
- Timestamp:
- 10/16/2015 06:22:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r34891 r35222 10 10 class WP_Media_List_Table extends WP_List_Table { 11 11 /** 12 * Store the pending comment count for each post 13 * 14 * @access public 12 * Holds the number of pending comments for each post. 13 * 15 14 * @since 4.4.0 16 15 * @var array 17 */ 18 public $pending_count = array(); 16 * @access protected 17 */ 18 protected $comment_pending_count = array(); 19 19 20 20 private $detached; … … 506 506 echo '<div class="post-com-count-wrapper">'; 507 507 508 if ( isset( $this-> pending_count[ $post->ID ] ) ) {509 $pending_comments = $this-> pending_count[ $post->ID ];508 if ( isset( $this->comment_pending_count[ $post->ID ] ) ) { 509 $pending_comments = $this->comment_pending_count[ $post->ID ]; 510 510 } else { 511 511 $pending_comments = get_pending_comments_num( $post->ID ); … … 583 583 reset( $wp_query->posts ); 584 584 585 $this-> pending_count = get_pending_comments_num( $post_ids );585 $this->comment_pending_count = get_pending_comments_num( $post_ids ); 586 586 587 587 add_filter( 'the_title','esc_html' );
Note: See TracChangeset
for help on using the changeset viewer.