Skip to content

Commit 81ceb1f

Browse files
authored
Merge pull request #739 from Automattic/bugfix/inline-row-action
Fix the nonce error when doing bulk actions
2 parents f994dd5 + d139651 commit 81ceb1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/notifications/notifications.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public function handle_user_post_subscription() {
516516
public function save_post_subscriptions( $new_status, $old_status, $post ) {
517517
global $edit_flow;
518518

519-
if ( ! empty( $_GET['_wpnonce'] ) && ! wp_verify_nonce( $_GET['_wpnonce'], 'editpost' ) ) {
519+
if ( ! empty( $_POST['_wpnonce'] ) && ! wp_verify_nonce( $_POST['_wpnonce'], 'editpost' ) ) {
520520
$this->print_ajax_response( 'error', $this->module->messages['nonce-failed'] );
521521
}
522522

0 commit comments

Comments
 (0)