mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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:
@@ -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