* @access public
*/
public function __construct() {
- $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your site’s Posts.') );
+ $widget_ops = array(
+ 'classname' => 'widget_archive',
+ 'description' => __( 'A monthly archive of your site’s Posts.' ),
+ 'customize_selective_refresh' => true,
+ );
parent::__construct('archives', __('Archives'), $widget_ops);
}
<select id="<?php echo esc_attr( $dropdown_id ); ?>" name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
<?php
/**
- * Filter the arguments for the Archives widget drop-down.
+ * Filters the arguments for the Archives widget drop-down.
*
* @since 2.8.0
*
<ul>
<?php
/**
- * Filter the arguments for the Archives widget.
+ * Filters the arguments for the Archives widget.
*
* @since 2.8.0
*