Changeset 44589
- Timestamp:
- 01/15/2019 12:42:30 AM (6 years ago)
- Location:
- trunk/src/wp-includes/widgets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-archives.php
r44574 r44589 180 180 ) 181 181 ); 182 $title = sanitize_text_field( $instance['title'] );183 182 ?> 184 <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>183 <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> 185 184 <p> 186 185 <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> -
trunk/src/wp-includes/widgets/class-wp-widget-calendar.php
r42747 r44589 95 95 public function form( $instance ) { 96 96 $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); 97 $title = sanitize_text_field( $instance['title'] );98 97 ?> 99 98 <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> 100 <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>99 <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> 101 100 <?php 102 101 } -
trunk/src/wp-includes/widgets/class-wp-widget-categories.php
r43571 r44589 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; … … 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 ); ?> /> -
trunk/src/wp-includes/widgets/class-wp-widget-meta.php
r43571 r44589 114 114 public function form( $instance ) { 115 115 $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); 116 $title = sanitize_text_field( $instance['title'] );117 116 ?> 118 <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>117 <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> 119 118 <?php 120 119 }
Note: See TracChangeset
for help on using the changeset viewer.