Use the correct variable names, Fixes "Empty Spam" comments & "Approve" link. Add a clear to push "No comments found." into place. Fixes #14964
git-svn-id: http://svn.automattic.com/wordpress/trunk@15666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2440,7 +2440,7 @@ class WP_Comments_Table extends WP_List_Table {
|
||||
if ( ( 'reply' == $action || 'quickedit' == $action ) && ! $this->from_ajax )
|
||||
$action .= ' hide-if-no-js';
|
||||
elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
|
||||
if ( '1' == get_comment_meta( $comment_id, '_wp_trash_meta_status', true ) )
|
||||
if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )
|
||||
$action .= ' approve';
|
||||
else
|
||||
$action .= ' unapprove';
|
||||
|
||||
Reference in New Issue
Block a user