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:
parent
1140c47c30
commit
0af37cccdb
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user