From 1e1324df0e98e4a733f786b73b1c41d0246e3996 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 1 Sep 2009 20:27:03 +0000 Subject: [PATCH] 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 --- wp-includes/comment-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index d9394cbc2d..6acc957c76 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -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); } /**