diff --git src/wp-includes/widgets/class-wp-widget-archives.php src/wp-includes/widgets/class-wp-widget-archives.php
index 56f45654fb..c54b748ea3 100644
|
|
class WP_Widget_Archives extends WP_Widget { |
173 | 173 | 'dropdown' => '', |
174 | 174 | ) |
175 | 175 | ); |
176 | | $title = sanitize_text_field( $instance['title'] ); |
177 | 176 | ?> |
178 | | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p> |
| 177 | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /></p> |
179 | 178 | <p> |
180 | 179 | <input class="checkbox" type="checkbox"<?php checked( $instance['dropdown'] ); ?> id="<?php echo $this->get_field_id( 'dropdown' ); ?>" name="<?php echo $this->get_field_name( 'dropdown' ); ?>" /> <label for="<?php echo $this->get_field_id( 'dropdown' ); ?>"><?php _e( 'Display as dropdown' ); ?></label> |
181 | 180 | <br/> |
diff --git src/wp-includes/widgets/class-wp-widget-calendar.php src/wp-includes/widgets/class-wp-widget-calendar.php
index c19a3a29a3..de32ac2ce1 100644
|
|
class WP_Widget_Calendar extends WP_Widget { |
96 | 96 | */ |
97 | 97 | public function form( $instance ) { |
98 | 98 | $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); |
99 | | $title = sanitize_text_field( $instance['title'] ); |
100 | 99 | ?> |
101 | 100 | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> |
102 | | <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p> |
| 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 esc_attr( $instance['title'] ); ?>" /></p> |
103 | 102 | <?php |
104 | 103 | } |
105 | 104 | } |
diff --git src/wp-includes/widgets/class-wp-widget-categories.php src/wp-includes/widgets/class-wp-widget-categories.php
index 13be3425e1..f8a9dd60b9 100644
|
|
class WP_Widget_Categories extends WP_Widget { |
160 | 160 | public function form( $instance ) { |
161 | 161 | //Defaults |
162 | 162 | $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); |
163 | | $title = sanitize_text_field( $instance['title'] ); |
164 | 163 | $count = isset( $instance['count'] ) ? (bool) $instance['count'] : false; |
165 | 164 | $hierarchical = isset( $instance['hierarchical'] ) ? (bool) $instance['hierarchical'] : false; |
166 | 165 | $dropdown = isset( $instance['dropdown'] ) ? (bool) $instance['dropdown'] : false; |
167 | 166 | ?> |
168 | 167 | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> |
169 | | <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p> |
| 168 | <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /></p> |
170 | 169 | |
171 | 170 | <p><input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'dropdown' ); ?>" name="<?php echo $this->get_field_name( 'dropdown' ); ?>"<?php checked( $dropdown ); ?> /> |
172 | 171 | <label for="<?php echo $this->get_field_id( 'dropdown' ); ?>"><?php _e( 'Display as dropdown' ); ?></label><br /> |
diff --git src/wp-includes/widgets/class-wp-widget-meta.php src/wp-includes/widgets/class-wp-widget-meta.php
index 2df1f7030d..6f2713909b 100644
|
|
class WP_Widget_Meta extends WP_Widget { |
111 | 111 | */ |
112 | 112 | public function form( $instance ) { |
113 | 113 | $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); |
114 | | $title = sanitize_text_field( $instance['title'] ); |
115 | 114 | ?> |
116 | | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p> |
| 115 | <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" /></p> |
117 | 116 | <?php |
118 | 117 | } |
119 | 118 | } |