@@ 611-617 (lines=7) @@ | ||
608 | if ( 'trash' == $status ) |
|
609 | wp_die( time() ); |
|
610 | $r = wp_trash_comment( $comment ); |
|
611 | } elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) { |
|
612 | if ( 'trash' != $status ) |
|
613 | wp_die( time() ); |
|
614 | $r = wp_untrash_comment( $comment ); |
|
615 | if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'trash' ) // undo trash, not in trash |
|
616 | $delta = 1; |
|
617 | } elseif ( isset($_POST['spam']) && 1 == $_POST['spam'] ) { |
|
618 | if ( 'spam' == $status ) |
|
619 | wp_die( time() ); |
|
620 | $r = wp_spam_comment( $comment ); |
|
@@ 621-627 (lines=7) @@ | ||
618 | if ( 'spam' == $status ) |
|
619 | wp_die( time() ); |
|
620 | $r = wp_spam_comment( $comment ); |
|
621 | } elseif ( isset($_POST['unspam']) && 1 == $_POST['unspam'] ) { |
|
622 | if ( 'spam' != $status ) |
|
623 | wp_die( time() ); |
|
624 | $r = wp_unspam_comment( $comment ); |
|
625 | if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'spam' ) // undo spam, not in spam |
|
626 | $delta = 1; |
|
627 | } elseif ( isset($_POST['delete']) && 1 == $_POST['delete'] ) { |
|
628 | $r = wp_delete_comment( $comment ); |
|
629 | } else { |
|
630 | wp_die( -1 ); |