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; }