From 170b14f97db50b6e3e1f9174626d0d6b791fcc70 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 2 Jan 2010 17:16:26 +0000 Subject: [PATCH] Fix a notice when replying to comments in the admin. git-svn-id: https://develop.svn.wordpress.org/trunk@12596 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 5f3af1c16b..628a5378fc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -2263,8 +2263,8 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true, if ( isset( $_comment_pending_count[$post->ID] ) ) { $pending_comments = absint( $_comment_pending_count[$post->ID] ); } else { - $_comment_pending_count_temp = (array) get_pending_comments_num( array( $post->ID ) ); - $pending_comments = $_comment_pending_count[$post->ID] = $_comment_pending_count_temp[$post->ID]; + $_comment_pending_count_temp = get_pending_comments_num( array( $post->ID ) ); + $pending_comments = $_comment_pending_count[$post->ID] = $_comment_pending_count_temp; } if ( $user_can ) { $post_link = "";