From 4c2e930442b0c5adc62cb6b52025b52f39cd44bb Mon Sep 17 00:00:00 2001 From: Burhan Nasir Date: Tue, 1 Nov 2022 15:39:38 +0500 Subject: [PATCH] Fix: Undefined variable --- includes/classes/Feature/Search/Synonyms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/classes/Feature/Search/Synonyms.php b/includes/classes/Feature/Search/Synonyms.php index 8c6dc0d5c4..78b71a91c7 100644 --- a/includes/classes/Feature/Search/Synonyms.php +++ b/includes/classes/Feature/Search/Synonyms.php @@ -408,6 +408,7 @@ public function handle_update_synonyms() { $nonce = filter_input( INPUT_POST, $this->get_nonce_field(), FILTER_SANITIZE_SPECIAL_CHARS ); $referer = filter_input( INPUT_POST, '_wp_http_referer', FILTER_SANITIZE_URL ); $post_id = false; + $update = false; if ( wp_verify_nonce( $nonce, $this->get_nonce_action() ) ) { $synonyms = filter_input( INPUT_POST, $this->get_synonym_field(), FILTER_CALLBACK, [ 'options' => 'wp_strip_all_tags' ] );