mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
comments_number() doesn't need to call get_the_ID(), because get_comments_number() does it if post ID is missing
git-svn-id: http://svn.automattic.com/wordpress/trunk@16613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
442de36663
commit
368eefd69c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user