Make WordPress Core

Changeset 7873


Ignore:
Timestamp:
05/02/2008 05:00:17 PM (16 years ago)
Author:
ryan
Message:

Use array calling style. Props guillep2k for the find. fixes #6637 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-includes/widgets.php

    r7735 r7873  
    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
Note: See TracChangeset for help on using the changeset viewer.