Skip to content

Commit

Permalink
Change strip_tags to sanitize_text_field
Browse files Browse the repository at this point in the history
  • Loading branch information
artpi committed Oct 28, 2016
1 parent 57a5acf commit b2da69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/widgets/google-translate.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function form( $instance ) {
*/
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? sanitize_text_field( $new_instance['title'] ) : '';
return $instance;
}

Expand Down

0 comments on commit b2da69d

Please sign in to comment.