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:
Nikolay Bachiyski 2010-11-29 17:34:43 +00:00
parent a643a8f79d
commit 3a01f911cd
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ function comments_number( $zero = false, $one = false, $more = false, $deprecate
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '1.3' );
$number = get_comments_number(get_the_ID());
$number = get_comments_number();
if ( $number > 1 )
$output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);