Changeset 28638
- Timestamp:
- 05/30/2014 07:46:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r28604 r28638 685 685 $post = get_post( $post_id ); 686 686 687 if ( ! isset( $post->comment_count )) {687 if ( ! $post ) { 688 688 $count = 0; 689 689 } else { 690 690 $count = $post->comment_count; 691 $post_id = $post->ID; 691 692 } 692 693 … … 699 700 * @param int $post_id Post ID. 700 701 */ 701 return apply_filters( 'get_comments_number', $count, $post ->ID);702 return apply_filters( 'get_comments_number', $count, $post_id ); 702 703 } 703 704
Note: See TracChangeset
for help on using the changeset viewer.