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
This commit is contained in:
Dominik Schilling (ocean90) 2014-05-28 22:35:21 +00:00
parent 1140c47c30
commit 0af37cccdb
1 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
/**