* @access public
*/
public function __construct() {
- $widget_ops = array( 'description' => __( "A cloud of your most used tags.") );
- parent::__construct('tag_cloud', __('Tag Cloud'), $widget_ops);
+ $widget_ops = array(
+ 'description' => __( 'A cloud of your most used tags.' ),
+ 'customize_selective_refresh' => true,
+ );
+ parent::__construct( 'tag_cloud', __( 'Tag Cloud' ), $widget_ops );
}
/**
}
/**
- * Filter the taxonomy used in the Tag Cloud widget.
+ * Filters the taxonomy used in the Tag Cloud widget.
*
* @since 2.8.0
* @since 3.0.0 Added taxonomy drop-down.
*
* @see wp_tag_cloud()
*
- * @param array $current_taxonomy The taxonomy to use in the tag cloud. Default 'tags'.
+ * @param array $args Args used for the tag cloud widget.
*/
$tag_cloud = wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array(
'taxonomy' => $current_taxonomy,
*/
public function update( $new_instance, $old_instance ) {
$instance = array();
- $instance['title'] = sanitize_text_field( stripslashes( $new_instance['title'] ) );
+ $instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['taxonomy'] = stripslashes($new_instance['taxonomy']);
return $instance;
}