Fix a notice when replying to comments in the admin.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-01-02 17:16:26 +00:00
parent 99709adb4e
commit e51341dc1d
1 changed files with 2 additions and 2 deletions

View File

@ -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 = "<a href='" . get_edit_post_link($post->ID) . "'>";