Skip to content

Commit d139651

Browse files
committed
Fix the nonce error
1 parent f994dd5 commit d139651

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)