- Timestamp:
- 11/30/2017 11:09:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-calendar.php
r41867 r42343 33 33 public function __construct() { 34 34 $widget_ops = array( 35 'classname' => 'widget_calendar',36 'description' => __( 'A calendar of your site’s Posts.' ),35 'classname' => 'widget_calendar', 36 'description' => __( 'A calendar of your site’s Posts.' ), 37 37 'customize_selective_refresh' => true, 38 38 ); … … 82 82 */ 83 83 public function update( $new_instance, $old_instance ) { 84 $instance = $old_instance;84 $instance = $old_instance; 85 85 $instance['title'] = sanitize_text_field( $new_instance['title'] ); 86 86 … … 97 97 public function form( $instance ) { 98 98 $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); 99 $title = sanitize_text_field( $instance['title'] );99 $title = sanitize_text_field( $instance['title'] ); 100 100 ?> 101 <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 <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> 103 103 <?php 104 104 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)