| @@ -133,10 +133,10 @@ | ||
| 133 | 133 | * @return array Updated safe values to be saved. |
| 134 | 134 | */ |
| 135 | 135 | public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 136 | 136 | $instance = array(); |
| 137 | - $instance['title'] = wp_kses( $new_instance['title'], array() ); | |
| 138 | - $instance['hits'] = wp_kses( $new_instance['hits'], array() ); | |
| 137 | + $instance['title'] = wp_kses( $new_instance['title'] ?? '', array() ); | |
| 138 | + $instance['hits'] = wp_kses( $new_instance['hits'] ?? '', array() ); | |
| 139 | 139 | |
| 140 | 140 | return $instance; |
| 141 | 141 | } |
| 142 | 142 | |