"Trash" status for comments, first run, props caesarsgrunt, see #4529

git-svn-id: http://svn.automattic.com/wordpress/trunk@11731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2009-07-21 03:11:12 +00:00
parent 19b743e7e2
commit d2fec31c0e
14 changed files with 211 additions and 80 deletions

View File

@@ -192,7 +192,7 @@ case 'delete-comment' : // On success, die with time() instead of 1
die( (string) time() );
$r = wp_set_comment_status( $comment->comment_ID, 'spam' );
} else {
$r = wp_delete_comment( $comment->comment_ID );
$r = wp_set_comment_status( $comment->comment_ID, 'delete' );
}
if ( $r ) // Decide if we need to send back '1' or a more complicated response including page links and comment counts
_wp_ajax_delete_comment_response( $comment->comment_ID );