From 0c521408ba8819159b980ce5eda536ae67b8e4c8 Mon Sep 17 00:00:00 2001 From: azaozz 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: http://svn.automattic.com/wordpress/trunk@11895 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 d9394cbc2..6acc957c7 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); } /**