- Timestamp:
- 01/15/2019 12:42:30 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.