Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -19,8 +19,6 @@ class WP_Widget_Calendar extends WP_Widget {
|
|||
* Ensure that the ID attribute only appears in the markup once
|
||||
*
|
||||
* @since 4.4.0
|
||||
*
|
||||
* @static
|
||||
* @var int
|
||||
*/
|
||||
private static $instance = 0;
|
||||
|
@ -32,8 +30,8 @@ class WP_Widget_Calendar extends WP_Widget {
|
|||
*/
|
||||
public function __construct() {
|
||||
$widget_ops = array(
|
||||
'classname' => 'widget_calendar',
|
||||
'description' => __( 'A calendar of your site’s Posts.' ),
|
||||
'classname' => 'widget_calendar',
|
||||
'description' => __( 'A calendar of your site’s Posts.' ),
|
||||
'customize_selective_refresh' => true,
|
||||
);
|
||||
parent::__construct( 'calendar', __( 'Calendar' ), $widget_ops );
|
||||
|
@ -81,7 +79,7 @@ class WP_Widget_Calendar extends WP_Widget {
|
|||
* @return array Updated settings to save.
|
||||
*/
|
||||
public function update( $new_instance, $old_instance ) {
|
||||
$instance = $old_instance;
|
||||
$instance = $old_instance;
|
||||
$instance['title'] = sanitize_text_field( $new_instance['title'] );
|
||||
|
||||
return $instance;
|
||||
|
@ -96,10 +94,9 @@ class WP_Widget_Calendar extends WP_Widget {
|
|||
*/
|
||||
public function form( $instance ) {
|
||||
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
|
||||
$title = sanitize_text_field( $instance['title'] );
|
||||
?>
|
||||
<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>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue