Changeset 15056 for trunk/wp-includes/taxonomy.php
- Timestamp:
- 05/29/2010 04:46:46 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/taxonomy.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r14934 r15056 46 46 'show_ui' => false, 47 47 '_builtin' => true, 48 'show_in_nav_menus' => false, 48 49 ) ) ; 49 50 … … 233 234 * defaults to public. 234 235 * 236 * show_in_nav_menus - true makes this taxonomy available for selection in navigation menus. 237 * Defaults to public. 238 * 235 239 * show_tagcloud - false to prevent the taxonomy being listed in the Tag Cloud Widget; 236 240 * defaults to show_ui which defalts to public. … … 265 269 'labels' => array(), 266 270 'capabilities' => array(), 271 'show_in_nav_menus' => null, 267 272 ); 268 273 $args = wp_parse_args($args, $defaults); … … 286 291 if ( is_null($args['show_ui']) ) 287 292 $args['show_ui'] = $args['public']; 293 294 // Whether to show this type in nav-menus.php. Defaults to the setting for public. 295 if ( null === $args['show_in_nav_menus'] ) 296 $args['show_in_nav_menus'] = $args['public']; 288 297 289 298 if ( is_null($args['show_tagcloud']) )
Note: See TracChangeset
for help on using the changeset viewer.