Pass $post->ID to get_comments_number filter.

Also fixes indentation and a typo in corresponding filter docs.

see #26240.
Built from https://develop.svn.wordpress.org/trunk@28604


git-svn-id: http://core.svn.wordpress.org/trunk@28428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-05-28 22:36:15 +00:00
parent 6989c5ab46
commit d40280d0db

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