From d13965103cc2ad14a050b2b84b777befcfb13388 Mon Sep 17 00:00:00 2001 From: ingeniumed Date: Tue, 2 Jul 2024 21:05:38 +1000 Subject: [PATCH] Fix the nonce error --- modules/notifications/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/notifications/notifications.php b/modules/notifications/notifications.php index 77fc8896..f2ca5747 100644 --- a/modules/notifications/notifications.php +++ b/modules/notifications/notifications.php @@ -516,7 +516,7 @@ public function handle_user_post_subscription() { public function save_post_subscriptions( $new_status, $old_status, $post ) { global $edit_flow; - if ( ! empty( $_GET['_wpnonce'] ) && ! wp_verify_nonce( $_GET['_wpnonce'], 'editpost' ) ) { + if ( ! empty( $_POST['_wpnonce'] ) && ! wp_verify_nonce( $_POST['_wpnonce'], 'editpost' ) ) { $this->print_ajax_response( 'error', $this->module->messages['nonce-failed'] ); }