WordPress.org

Make WordPress Core

Changeset 13258


Ignore:
Timestamp:
02/20/10 22:21:20 (5 years ago)
Author:
ryan
Message:

Set taxonomy label if none given.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r13257 r13258  
    210210                        'public' => true, 
    211211                        'show_ui' => null, 
     212                        'label' => null, 
    212213                        '_builtin' => false 
    213214                        ); 
     
    234235    if ( is_null($args['show_ui']) ) 
    235236        $args['show_ui'] = $args['public']; 
     237 
     238    if ( is_null($args['label'] ) ) 
     239        $args['label'] = $taxonomy; 
    236240 
    237241    foreach ( array('manage_cap', 'edit_cap', 'delete_cap') as $cap ) { 
Note: See TracChangeset for help on using the changeset viewer.