Add Undo when moving comments to the trash, remove unneeded nonces, see #4529

git-svn-id: https://develop.svn.wordpress.org/trunk@12008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-10-08 08:24:59 +00:00
parent ab98fc356b
commit 59981a3d5b
16 changed files with 164 additions and 69 deletions

View File

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