Changeset 15056
- Timestamp:
- 05/29/2010 04:46:46 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/nav-menu.php
r15049 r15056 387 387 */ 388 388 function wp_nav_menu_taxonomy_meta_boxes() { 389 $taxonomies = get_taxonomies( array( 'show_ ui' => true ), 'object' );389 $taxonomies = get_taxonomies( array( 'show_in_nav_menus' => true ), 'object' ); 390 390 391 391 if ( !$taxonomies ) … … 953 953 function _wp_nav_menu_meta_box_object( $object = null ) { 954 954 if ( isset( $object->name ) ) { 955 // don't show media meta box956 if ( 'attachment' == $object->name )957 return false;958 955 959 956 if ( 'page' == $object->name ) { -
trunk/wp-includes/post.php
r14991 r15056 51 51 'query_var' => false, 52 52 'can_export' => false, 53 'show_in_nav_menus' => false, 53 54 ) ); 54 55 -
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.