PluginProbe
Polylang / 2.6.2
Polylang v2.6.2
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | include/widget-languages.php +1 -1 2.7.22.6.2 View file →
@@ -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