Ticket #6637: 6637-array.diff

File 6637-array.diff, 0.6 kB (added by ryan, 7 months ago)
  • wp-includes/widgets.php

    old new  
    710710        echo $before_widget; 
    711711        echo $before_title . $title . $after_title; 
    712712 
    713         $cat_args = "orderby=name&show_count={$c}&hierarchical={$h}"
     713        $cat_args = array('orderby' => 'name', 'show_count' => $c, 'hierarchical' => $h)
    714714 
    715715        if ( $d ) { 
    716                 wp_dropdown_categories($cat_args . '&show_option_none= ' . __('Select Category')); 
     716                $cat_args['show_option_none'] = __('Select Category'); 
     717                wp_dropdown_categories($cat_args); 
    717718?> 
    718719 
    719720<script type='text/javascript'>