@@ -97,21 +97,21 @@ function form( $instance ) {
97
97
$ show_views_today = intval ( $ instance ['show_views_today ' ] );
98
98
?>
99
99
<p>
100
- <label for="<?php echo $ this ->get_field_id ('title ' ); ?> "><?php _e ('Title ' , 'page-views-count ' ); ?> :</label>
101
- <input class="widefat" id="<?php echo $ this ->get_field_id ('title ' ); ?> " name="<?php echo $ this ->get_field_name ('title ' ); ?> " type="text" value="<?php echo $ title ; ?> " />
100
+ <label for="<?php echo esc_attr ( $ this ->get_field_id ('title ' ) ); ?> "><?php _e ('Title ' , 'page-views-count ' ); ?> :</label>
101
+ <input class="widefat" id="<?php echo esc_attr ( $ this ->get_field_id ('title ' ) ) ; ?> " name="<?php echo esc_attr ( $ this ->get_field_name ('title ' ) ) ; ?> " type="text" value="<?php echo esc_attr ( $ title ) ; ?> " />
102
102
</p>
103
103
<p>
104
- <label for="<?php echo $ this ->get_field_id ('postid ' ); ?> "><?php _e ('Post/Page ID ' , 'page-views-count ' ); ?> :</label>
105
- <input style="width:50px;" id="<?php echo $ this ->get_field_id ('postid ' ); ?> " name="<?php echo $ this ->get_field_name ('postid ' ); ?> " type="text" value="<?php echo $ postid ; ?> " /> <br />
104
+ <label for="<?php echo esc_attr ( $ this ->get_field_id ('postid ' ) ); ?> "><?php _e ('Post/Page ID ' , 'page-views-count ' ); ?> :</label>
105
+ <input style="width:50px;" id="<?php echo esc_attr ( $ this ->get_field_id ('postid ' ) ) ; ?> " name="<?php echo esc_attr ( $ this ->get_field_name ('postid ' ) ) ; ?> " type="text" value="<?php echo esc_attr ( $ postid ) ; ?> " /> <br />
106
106
<span class="description"><?php _e ( 'Post/Page ID want to show stats, leave empty for use ID of current post. ' , 'page-views-count ' ); ?> </span>
107
107
</p>
108
108
<p>
109
- <input type="checkbox" <?php checked ( $ increase , 1 ); ?> id="<?php echo $ this ->get_field_id ('increase ' ); ?> " name="<?php echo $ this ->get_field_name ('increase ' ); ?> " value="1" />
110
- <label for="<?php echo $ this ->get_field_id ('increase ' ); ?> "><?php _e ( 'Increase count ' , 'page-views-count ' ); ?> </label>
109
+ <input type="checkbox" <?php checked ( $ increase , 1 ); ?> id="<?php echo esc_attr ( $ this ->get_field_id ('increase ' ) ) ; ?> " name="<?php echo esc_attr ( $ this ->get_field_name ('increase ' ) ); ?> " value="1" />
110
+ <label for="<?php echo esc_attr ( $ this ->get_field_id ('increase ' ) ); ?> "><?php _e ( 'Increase count ' , 'page-views-count ' ); ?> </label>
111
111
</p>
112
112
<p>
113
- <input type="checkbox" <?php checked ( $ show_views_today , 1 ); ?> id="<?php echo $ this ->get_field_id ('show_views_today ' ); ?> " name="<?php echo $ this ->get_field_name ('show_views_today ' ); ?> " value="1" />
114
- <label for="<?php echo $ this ->get_field_id ('show_views_today ' ); ?> "><?php _e ( 'Show Views Today ' , 'page-views-count ' ); ?> </label>
113
+ <input type="checkbox" <?php checked ( $ show_views_today , 1 ); ?> id="<?php echo esc_attr ( $ this ->get_field_id ('show_views_today ' ) ) ; ?> " name="<?php echo esc_attr ( $ this ->get_field_name ('show_views_today ' ) ); ?> " value="1" />
114
+ <label for="<?php echo esc_attr ( $ this ->get_field_id ('show_views_today ' ) ); ?> "><?php _e ( 'Show Views Today ' , 'page-views-count ' ); ?> </label>
115
115
</p>
116
116
<?php
117
117
}
0 commit comments