Pass Post ID to the get_comments_number filter, props sirzooro, fixes #10705
git-svn-id: https://develop.svn.wordpress.org/trunk@11895 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
97bef9ee66
commit
1e1324df0e
|
@ -532,7 +532,7 @@ function get_comments_number( $post_id = 0 ) {
|
|||
else
|
||||
$count = $post->comment_count;
|
||||
|
||||
return apply_filters('get_comments_number', $count);
|
||||
return apply_filters('get_comments_number', $count, $post_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue