Skip to content

Commit

Permalink
Fix: Undefined variable
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Nov 1, 2022
1 parent 349129b commit 4c2e930
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 4c2e930

Please sign in to comment.