if ( !
isset( $_POST['comment_status'
] ) || 'spam' !==
$_POST['comment_status'
] ) { $delta = 1;
} } elseif ( isset( $_POST['delete'
] ) && 1 ==
$_POST['delete'
] ) { $r =
wp_delete_comment( $comment );
} else { wp_die( -1
);
} 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,
$delta );
} wp_die( 0
);
}/**
* Handles deleting a tag via AJAX.
*
* @since 3.1.0
*/
function wp_ajax_delete_tag() {