equal
deleted
inserted
replaced
24 public function __construct() { |
24 public function __construct() { |
25 $widget_ops = array( |
25 $widget_ops = array( |
26 'classname' => 'widget_archive', |
26 'classname' => 'widget_archive', |
27 'description' => __( 'A monthly archive of your site’s Posts.' ), |
27 'description' => __( 'A monthly archive of your site’s Posts.' ), |
28 'customize_selective_refresh' => true, |
28 'customize_selective_refresh' => true, |
|
29 'show_instance_in_rest' => true, |
29 ); |
30 ); |
30 parent::__construct( 'archives', __( 'Archives' ), $widget_ops ); |
31 parent::__construct( 'archives', __( 'Archives' ), $widget_ops ); |
31 } |
32 } |
32 |
33 |
33 /** |
34 /** |
101 } |
102 } |
102 |
103 |
103 $type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"'; |
104 $type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"'; |
104 ?> |
105 ?> |
105 |
106 |
106 <option value=""><?php echo esc_attr( $label ); ?></option> |
107 <option value=""><?php echo esc_html( $label ); ?></option> |
107 <?php wp_get_archives( $dropdown_args ); ?> |
108 <?php wp_get_archives( $dropdown_args ); ?> |
108 |
109 |
109 </select> |
110 </select> |
110 |
111 |
111 <script<?php echo $type_attr; ?>> |
112 <script<?php echo $type_attr; ?>> |