- Timestamp:
- 07/01/2019 12:50:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-comments-list-table.php
r44759 r45583 820 820 $pending_comments = $this->pending_count[ $post->ID ]; 821 821 } else { 822 $_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); 823 $pending_comments = $this->pending_count[ $post->ID ] = $_pending_count_temp[ $post->ID ]; 822 $_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); 823 $pending_comments = $_pending_count_temp[ $post->ID ]; 824 $this->pending_count[ $post->ID ] = $pending_comments; 824 825 } 825 826 … … 832 833 833 834 echo '<div class="response-links">'; 834 if ( 'attachment' === $post->post_type && ( $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ) ) ) { 835 echo $thumb; 835 if ( 'attachment' === $post->post_type ) { 836 $thumb = wp_get_attachment_image( $post->ID, array( 80, 60 ), true ); 837 if ( $thumb ) { 838 echo $thumb; 839 } 836 840 } 837 841 echo $post_link;
Note: See TracChangeset
for help on using the changeset viewer.