]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/widgets/class-wp-widget-tag-cloud.php
WordPress 4.5
[autoinstalls/wordpress.git] / wp-includes / widgets / class-wp-widget-tag-cloud.php
index 99f7af6ea1be04b31dbb49d5892f605435f4b603..1251e1d29eb8428481fdc83efac54a087139e836 100644 (file)
@@ -23,8 +23,11 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
         * @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 );
        }
 
        /**
@@ -98,7 +101,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
         */
        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;
        }