summaryrefslogtreecommitdiffstats
path: root/wp-includes/comment-template.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/comment-template.php')
-rw-r--r--wp-includes/comment-template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 6ab6bc3..19fed0c 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -150,7 +150,7 @@ function get_comments_number( $post_id = 0 ) {
$post_id = (int) $post_id;
if ( !$post_id )
- $post_id = $id;
+ $post_id = (int) $id;
$post = get_post($post_id);
if ( ! isset($post->comment_count) )