Changeset 34130 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 09/14/2015 09:46:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r34129 r34130 527 527 if ( 'trash' == $status ) 528 528 wp_die( time() ); 529 $r = wp_trash_comment( $comment ->comment_ID);529 $r = wp_trash_comment( $comment ); 530 530 } elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) { 531 531 if ( 'trash' != $status ) 532 532 wp_die( time() ); 533 $r = wp_untrash_comment( $comment ->comment_ID);533 $r = wp_untrash_comment( $comment ); 534 534 if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'trash' ) // undo trash, not in trash 535 535 $delta = 1; … … 537 537 if ( 'spam' == $status ) 538 538 wp_die( time() ); 539 $r = wp_spam_comment( $comment ->comment_ID);539 $r = wp_spam_comment( $comment ); 540 540 } elseif ( isset($_POST['unspam']) && 1 == $_POST['unspam'] ) { 541 541 if ( 'spam' != $status ) 542 542 wp_die( time() ); 543 $r = wp_unspam_comment( $comment ->comment_ID);543 $r = wp_unspam_comment( $comment ); 544 544 if ( ! isset( $_POST['comment_status'] ) || $_POST['comment_status'] != 'spam' ) // undo spam, not in spam 545 545 $delta = 1; 546 546 } elseif ( isset($_POST['delete']) && 1 == $_POST['delete'] ) { 547 $r = wp_delete_comment( $comment ->comment_ID);547 $r = wp_delete_comment( $comment ); 548 548 } else { 549 549 wp_die( -1 );
Note: See TracChangeset
for help on using the changeset viewer.