Skip to content

Commit

Permalink
Merge pull request #3102 from 10up/burhan/fix-undefined-variable
Browse files Browse the repository at this point in the history
Fix: Undefined variable $update
  • Loading branch information
felipeelia authored Nov 1, 2022
2 parents 165d849 + 4c2e930 commit 526bd01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/classes/Feature/Search/Synonyms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
Expand Down

0 comments on commit 526bd01

Please sign in to comment.