diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 19f13fe2a2..ef7f160f0e 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -331,7 +331,10 @@ class WP_Widget_Calendar extends WP_Widget { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = strip_tags($instance['title']); ?> -
+ - - - + + + + +- -
+ -
-
-
-
-
-
-
+
+
+
+
-
+
-
+
- -
+ -- -
+ -- -
+ -- -
+ -- -
+ -- -
+ __( "Your most used tags in cloud format") ); + $this->WP_Widget('tag_cloud', __('Tag Cloud'), $widget_ops); } - if ( $options != $newoptions ) { - $options = $newoptions; - update_option('widget_tag_cloud', $options); + function widget( $args, $instance ) { + extract($args); + $title = empty($instance['title']) ? __('Tags') : apply_filters('widget_title', $instance['title']); + + echo $before_widget; + echo $before_title . $title . $after_title; + wp_tag_cloud(); + echo $after_widget; } - $title = attribute_escape( $options['title'] ); + function update( $new_instance, $old_instance ) { + $instance['title'] = strip_tags(stripslashes($new_instance['title'])); + return $instance; + } + + function form( $instance ) { ?> --
- + 'widget_tag_cloud', 'description' => __( "Your most used tags in cloud format") ); - wp_register_sidebar_widget('tag_cloud', __('Tag Cloud'), 'wp_widget_tag_cloud', $widget_ops); - wp_register_widget_control('tag_cloud', __('Tag Cloud'), 'wp_widget_tag_cloud_control' ); + register_widget('WP_Widget_Tag_Cloud'); do_action('widgets_init'); }