Make WordPress Core

Ticket #24808: 24808.diff

File 24808.diff, 774 bytes (added by aaronholbrook, 12 years ago)

Added description to the default args, allows for creating description of taxonomies

  • wp-includes/taxonomy.php

     
    300300 *
    301301 * labels - An array of labels for this taxonomy. You can see accepted values in {@link get_taxonomy_labels()}. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones.
    302302 *
     303 * description - A short descriptive summary of what the taxonomy is for. Defaults to blank.
     304 *
    303305 * @package WordPress
    304306 * @subpackage Taxonomy
    305307 * @since 2.3.0
     
    329331                'labels' => array(),
    330332                'capabilities' => array(),
    331333                'show_in_nav_menus' => null,
     334                'description' => ''
    332335        );
    333336        $args = wp_parse_args($args, $defaults);
    334337