Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:Automattic/Edit-Flow into add/au…
Browse files Browse the repository at this point in the history
…tomated-status-movements
  • Loading branch information
ingeniumed committed Jul 2, 2024
2 parents e7c0c31 + 81ceb1f commit 60426a3
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 60426a3

Please sign in to comment.