Skip to content

Commit

Permalink
chore: pr review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani authored Aug 19, 2024
1 parent 2cacef9 commit 7557477
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,7 @@ private function get_otter_status(): string {
* @return void
*/
public function set_otter_ref() {
if ( empty( $_POST['nonce'] ) ) {
return;
}

if ( ! wp_verify_nonce( sanitize_text_field( $_POST['nonce'] ), 'neve-fse-set-otter-ref' ) ) {
if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( sanitize_text_field( $_POST['nonce'] ), 'neve-fse-set-otter-ref' ) ) {
return;
}

Expand Down

0 comments on commit 7557477

Please sign in to comment.