WordPress.org

Make WordPress Core

Changeset 13277


Ignore:
Timestamp:
02/21/10 02:55:07 (4 years ago)
Author:
dd32
Message:

add show_tagcloud to Taxonomy registration & add basic PHPDoc, See #11612

File:
1 edited

Legend:

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

    r13268 r13277  
    188188 * (?$query_var=$term); default will use $taxonomy as query var. 
    189189 * 
     190 * public - If the taxonomy should be publically queryable; //@TODO not implemented. 
     191 * defaults to true. 
     192 * 
     193 * show_ui - If the WordPress UI admin tags UI should apply to this taxonomy; 
     194 * defaults to public. 
     195 * 
     196 * show_tagcloud - false to prevent the taxonomy being listed in the Tag Cloud Widget; 
     197 * defaults to show_ui which defalts to public. 
     198 * 
    190199 * @package WordPress 
    191200 * @subpackage Taxonomy 
     
    212221                        'show_ui' => null, 
    213222                        'label' => null, 
     223                        'show_tagcloud' => null, 
    214224                        '_builtin' => false 
    215225                        ); 
     
    236246    if ( is_null($args['show_ui']) ) 
    237247        $args['show_ui'] = $args['public']; 
     248 
     249    if ( is_null($args['show_tagcloud']) ) 
     250        $args['show_tagcloud'] = $args['show_ui']; 
    238251 
    239252    if ( is_null($args['label'] ) ) 
Note: See TracChangeset for help on using the changeset viewer.