Skip to content

Commit c6f8bce

Browse files
committed
Refactoring
1 parent c9055ac commit c6f8bce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

includes/Mtw.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ public function widget( $args, $instance ) {
8282
*
8383
* @return array
8484
*/
85-
public function update( $new_instance, $old_instance ) {
86-
$instance = $old_instance;
87-
85+
public function update( $new_instance, $instance ) {
8886
$instance['title'] = strip_tags( $new_instance['title'] ?? '' );
8987
$instance['taxonomy'] = strip_tags( $new_instance['taxonomy'] ?? '' );
9088
$instance['name'] = strip_tags( $new_instance['name'] ?? '' );

0 commit comments

Comments
 (0)