From 0af37cccdbae98b2d64dca12b85581d6160472c5 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 28 May 2014 22:35:21 +0000 Subject: [PATCH] Pass `$post->ID` to `get_comments_number` filter. Also fixes indentation and a typo in corresponding filter docs. see #26240. git-svn-id: https://develop.svn.wordpress.org/trunk@28604 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment-template.php b/src/wp-includes/comment-template.php index 6f8c9d83b2..dafa3a4a5b 100644 --- a/src/wp-includes/comment-template.php +++ b/src/wp-includes/comment-template.php @@ -695,10 +695,10 @@ function get_comments_number( $post_id = 0 ) { * * @since 1.5.0 * - * @param int $count Nnumber of comments a post has. + * @param int $count Number of comments a post has. * @param int $post_id Post ID. */ - return apply_filters( 'get_comments_number', $count, $post_id ); + return apply_filters( 'get_comments_number', $count, $post->ID ); } /**