mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user