505
505
( isset( $_POST['spam'] ) && (int) $_POST['spam'] == 1 ) ||
506
506
( isset( $_POST['unspam'] ) && (int) $_POST['unspam'] == 1 ) ||
507
507
( isset( $_POST['comment_status'] ) && in_array( $_POST['comment_status'], array( 'spam', 'unspam' ) ) ) ||
508
( isset( $_GET['action'] ) && in_array( $_GET['action'], array( 'spam', 'unspam', 'spamcomment', 'unspamcomment', ) ) ) ||
511
512
if ( $new_status == 'spam' && ( $old_status == 'approved' || $old_status == 'unapproved' || !$old_status ) ) {
512
513
return self::submit_spam_comment( $comment->comment_ID );