From 13672191980c00255ad8f1b4ed935744fe573f09 Mon Sep 17 00:00:00 2001 From: rob1n Date: Fri, 8 Jun 2007 22:50:37 +0000 Subject: [PATCH] Some more multiple category widget stuff. see #4285 git-svn-id: https://develop.svn.wordpress.org/trunk@5673 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) 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'] ); ?> -

-

-

-

- +

+ +

+ +

+ +

+ +