Skip to content

Commit

Permalink
Fix the nonce error
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Jul 2, 2024
1 parent f994dd5 commit d139651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/notifications/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
}

Expand Down

0 comments on commit d139651

Please sign in to comment.