From 7557477c5b2acb80c0811fe38df997cd7c5e7368 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Mon, 19 Aug 2024 18:55:23 +0530 Subject: [PATCH] chore: pr review changes --- inc/Admin.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/inc/Admin.php b/inc/Admin.php index 95fbcc7..204f37e 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -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; }