Skip to content

Commit

Permalink
fix(update): if no value reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Jul 18, 2024
1 parent 6ae9a50 commit 08efa04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions class.wph-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ function update($new_instance, $old_instance) {
if (isset($key['filter'])) {
$instance[$slug] = $this->filter($key['filter'], $new_instance[$slug]);
}
} else {
$instance[$slug] = '';
}
}

Expand Down

0 comments on commit 08efa04

Please sign in to comment.