From 3a01f911cd649b7dab3c45dadb2726aa8592a8c3 Mon Sep 17 00:00:00 2001 From: Nikolay Bachiyski Date: Mon, 29 Nov 2010 17:34:43 +0000 Subject: [PATCH] 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 --- wp-includes/comment-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index ac7fbb40fc..e9245f596e 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -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);