Pass Post ID to the get_comments_number filter, props sirzooro, fixes #10705
git-svn-id: http://svn.automattic.com/wordpress/trunk@11895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c590b49f45
commit
0c521408ba
|
@ -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