Add Undo when moving comments to the trash, remove unneeded nonces, see #4529
git-svn-id: http://svn.automattic.com/wordpress/trunk@12008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -891,7 +891,7 @@ function wp_untrash_comment($comment_id) {
|
||||
$comment = array('comment_ID'=>$comment_id);
|
||||
|
||||
$status = get_comment_meta($comment_id, '_wp_trash_meta_status', true);
|
||||
if ( false === $status || '' === $status )
|
||||
if ( empty($status) )
|
||||
$status = '0';
|
||||
|
||||
$comment['comment_approved'] = $status;
|
||||
|
||||
Reference in New Issue
Block a user