From 90f52c0fc3b1f1db2f7b803a9cd7dedc0888a01e Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 2 May 2008 16:59:49 +0000 Subject: [PATCH] Use array calling style. Props guillep2k for the find. fixes #6637 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@7872 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/widgets.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 09e729cf58..d77d85e3f3 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -710,10 +710,11 @@ function wp_widget_categories($args, $widget_args = 1) { echo $before_widget; echo $before_title . $title . $after_title; - $cat_args = "orderby=name&show_count={$c}&hierarchical={$h}"; + $cat_args = array('orderby' => 'name', 'show_count' => $c, 'hierarchical' => $h); if ( $d ) { - wp_dropdown_categories($cat_args . '&show_option_none= ' . __('Select Category')); + $cat_args['show_option_none'] = __('Select Category'); + wp_dropdown_categories($cat_args); ?>