Skip to content

Commit

Permalink
Fix nonce security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asaquzzaman committed Aug 25, 2020
1 parent 1c173bd commit 47fb336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Upgrades/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ public function do_updates() {
return;
}

if ( ! isset( $_POST['pm_update'] ) ) {
return;
}

if ( ! current_user_can( 'manage_options' ) ) {
return;
}
Expand Down

0 comments on commit 47fb336

Please sign in to comment.