Make WordPress Core


Ignore:
Timestamp:
05/19/2016 02:16:36 AM (9 years ago)
Author:
boonebgorges
Message:

Beautify, simplify, lovelify, alignify the default argument array in wp_dropdown_categories().

See #31909.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r36289 r37463  
    357357function wp_dropdown_categories( $args = '' ) {
    358358    $defaults = array(
    359         'show_option_all' => '', 'show_option_none' => '',
    360         'orderby' => 'id', 'order' => 'ASC',
    361         'show_count' => 0,
    362         'hide_empty' => 1, 'child_of' => 0,
    363         'exclude' => '', 'echo' => 1,
    364         'selected' => 0, 'hierarchical' => 0,
    365         'name' => 'cat', 'id' => '',
    366         'class' => 'postform', 'depth' => 0,
    367         'tab_index' => 0, 'taxonomy' => 'category',
    368         'hide_if_empty' => false, 'option_none_value' => -1,
    369         'value_field' => 'term_id',
     359        'show_option_all'   => '',
     360        'show_option_none'  => '',
     361        'orderby'           => 'id',
     362        'order'             => 'ASC',
     363        'show_count'        => 0,
     364        'hide_empty'        => 1,
     365        'child_of'          => 0,
     366        'exclude'           => '',
     367        'echo'              => 1,
     368        'selected'          => 0,
     369        'hierarchical'      => 0,
     370        'name'              => 'cat',
     371        'id'                => '',
     372        'class'             => 'postform',
     373        'depth'             => 0,
     374        'tab_index'         => 0,
     375        'taxonomy'          => 'category',
     376        'hide_if_empty'     => false,
     377        'option_none_value' => -1,
     378        'value_field'       => 'term_id',
    370379    );
    371380
Note: See TracChangeset for help on using the changeset viewer.