|
@@ 563-569 (lines=7) @@
|
| 560 |
|
if ( 'trash' == $status ) |
| 561 |
|
wp_die( time() ); |
| 562 |
|
$r = wp_trash_comment( $comment ); |
| 563 |
|
} elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) { |
| 564 |
|
if ( 'trash' != $status ) |
| 565 |
|
wp_die( time() ); |
| 566 |
|
$r = wp_untrash_comment( $comment ); |
| 567 |
|
if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'trash' ) // undo trash, not in trash |
| 568 |
|
$delta = 1; |
| 569 |
|
} elseif ( isset($_POST['spam']) && 1 == $_POST['spam'] ) { |
| 570 |
|
if ( 'spam' == $status ) |
| 571 |
|
wp_die( time() ); |
| 572 |
|
$r = wp_spam_comment( $comment ); |
|
@@ 573-579 (lines=7) @@
|
| 570 |
|
if ( 'spam' == $status ) |
| 571 |
|
wp_die( time() ); |
| 572 |
|
$r = wp_spam_comment( $comment ); |
| 573 |
|
} elseif ( isset($_POST['unspam']) && 1 == $_POST['unspam'] ) { |
| 574 |
|
if ( 'spam' != $status ) |
| 575 |
|
wp_die( time() ); |
| 576 |
|
$r = wp_unspam_comment( $comment ); |
| 577 |
|
if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'spam' ) // undo spam, not in spam |
| 578 |
|
$delta = 1; |
| 579 |
|
} elseif ( isset($_POST['delete']) && 1 == $_POST['delete'] ) { |
| 580 |
|
$r = wp_delete_comment( $comment ); |
| 581 |
|
} else { |
| 582 |
|
wp_die( -1 ); |