From ca0474c9fb0455f0e9d198146ad41357f2f7b0d6 Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 25 Aug 2011 08:05:15 +0000 Subject: [PATCH] Fix the action links broken by [18594]. Fixes #18447. git-svn-id: http://svn.automattic.com/wordpress/trunk@18599 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-comments-list-table.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index acb1d2395c..1600d13c9a 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -302,7 +302,7 @@ class WP_Comments_List_Table extends WP_List_Table { } function single_row( $a_comment ) { - global $post, $comment, $the_comment_status; + global $post, $comment; $comment = $a_comment; $the_comment_class = join( ' ', get_comment_class( wp_get_comment_status( $comment->comment_ID ) ) ); @@ -322,11 +322,12 @@ class WP_Comments_List_Table extends WP_List_Table { } function column_comment( $comment ) { - global $post, $comment_status, $the_comment_status; + global $post, $comment_status; $user_can = $this->user_can; $comment_url = esc_url( get_comment_link( $comment->comment_ID ) ); + $the_comment_status = wp_get_comment_status( $comment->comment_ID ); $ptime = date( 'G', strtotime( $comment->comment_date ) ); if ( ( abs( time() - $ptime ) ) < 86400 )