diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 2f3ba008b0..2c0ff8e714 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -612,9 +612,11 @@ function wp_widget_text_register() { function wp_widget_categories($args, $number = 1) { extract($args); $options = get_option('widget_categories'); + $c = $options[$number]['count'] ? '1' : '0'; $h = $options[$number]['hierarchical'] ? '1' : '0'; $d = $options[$number]['dropdown'] ? '1' : '0'; + $title = empty($options[$number]['title']) ? __('Categories') : $options[$number]['title']; echo $before_widget; @@ -667,16 +669,25 @@ function wp_widget_categories_control( $number ) { update_option('widget_categories', $options); } - $count = $options[$number]['count'] ? 'checked="checked"' : ''; - $hierarchical = $options[$number]['hierarchical'] ? 'checked="checked"' : ''; - $dropdown = $options[$number]['dropdown'] ? 'checked="checked"' : ''; - $title = attribute_escape($options[$number]['title']); + $title = attribute_escape( $options[$number]['title'] ); ?> -
- - - - + + + + + + + + +