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:
azaozz
2009-10-08 08:24:59 +00:00
parent d7a30e235f
commit d20c23e98d
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;