comments_number() doesn't need to call get_the_ID(), because get_comments_number() does it if post ID is missing
git-svn-id: https://develop.svn.wordpress.org/trunk@16613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a643a8f79d
commit
3a01f911cd
|
@ -574,7 +574,7 @@ function comments_number( $zero = false, $one = false, $more = false, $deprecate
|
||||||
if ( !empty( $deprecated ) )
|
if ( !empty( $deprecated ) )
|
||||||
_deprecated_argument( __FUNCTION__, '1.3' );
|
_deprecated_argument( __FUNCTION__, '1.3' );
|
||||||
|
|
||||||
$number = get_comments_number(get_the_ID());
|
$number = get_comments_number();
|
||||||
|
|
||||||
if ( $number > 1 )
|
if ( $number > 1 )
|
||||||
$output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);
|
$output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);
|
||||||
|
|
Loading…
Reference in New Issue