Use array calling style. Props guillep2k for the find. fixes #6637 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@7872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc6a396a84
commit
ab3b479868
@ -710,10 +710,11 @@ function wp_widget_categories($args, $widget_args = 1) {
|
|||||||
echo $before_widget;
|
echo $before_widget;
|
||||||
echo $before_title . $title . $after_title;
|
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 ) {
|
if ( $d ) {
|
||||||
wp_dropdown_categories($cat_args . '&show_option_none= ' . __('Select Category'));
|
$cat_args['show_option_none'] = __('Select Category');
|
||||||
|
wp_dropdown_categories($cat_args);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
|
Loading…
Reference in New Issue
Block a user