| @@ -208,9 +208,9 @@ | ||
| 208 | 208 | * @return array $instance Updated safe values to be saved. |
| 209 | 209 | */ |
| 210 | 210 | public function update( $new_instance, $old_instance ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable |
| 211 | 211 | $instance = array(); |
| 212 | - $instance['title'] = wp_kses( $new_instance['title'], array() ); | |
| 212 | + $instance['title'] = wp_kses( $new_instance['title'] ?? '', array() ); | |
| 213 | 213 | if ( $instance['title'] === $this->default_title ) { |
| 214 | 214 | $instance['title'] = false; // Store as false in case of language change. |
| 215 | 215 | } |
| 216 | 216 | return $instance; |