Fix the action links broken by [18594]. Fixes #18447.

git-svn-id: https://develop.svn.wordpress.org/trunk@18599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-08-25 08:05:15 +00:00
parent 9e2aa32657
commit ab660228ab
1 changed files with 3 additions and 2 deletions

View File

@ -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 )