| @@ -63,9 +63,9 @@ | ||
| 63 | 63 | * @param array $old_instance Old settings for this instance |
| 64 | 64 | * @return array Settings to save or bool false to cancel saving |
| 65 | 65 | */ |
| 66 | 66 | public function update( $new_instance, $old_instance ) { |
| 67 | - $instance = array( 'title' => sanitize_text_field( $new_instance['title'] ) ); | |
| 67 | + $instance['title'] = sanitize_text_field( $new_instance['title'] ); | |
| 68 | 68 | foreach ( array_keys( PLL_Switcher::get_switcher_options( 'widget' ) ) as $key ) { |
| 69 | 69 | $instance[ $key ] = ! empty( $new_instance[ $key ] ) ? 1 : 0; |
| 70 | 70 | } |
| 71 | 71 | |