Ticket #26948: taxonomy_quick_edit2.diff
File taxonomy_quick_edit2.diff, 1.3 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
754 754 foreach ( $taxonomy_names as $taxonomy_name ) { 755 755 $taxonomy = get_taxonomy( $taxonomy_name ); 756 756 757 if ( !$taxonomy->show_ui )757 if ( !$taxonomy->show_ui || !$taxonomy->show_in_quick_edit ) 758 758 continue; 759 759 760 760 if ( $taxonomy->hierarchical ) -
wp-includes/taxonomy.php
338 338 'show_in_menu' => null, 339 339 'show_in_nav_menus' => null, 340 340 'show_tagcloud' => null, 341 'show_in_quick_edit' => null, 341 342 'show_admin_column' => false, 342 343 'meta_box_cb' => null, 343 344 'capabilities' => array(), … … 394 395 if ( null === $args['show_tagcloud'] ) 395 396 $args['show_tagcloud'] = $args['show_ui']; 396 397 398 // If not set, default to the setting for show_ui. 399 if ( null === $args['show_in_quick_edit'] ) 400 $args['show_in_quick_edit'] = $args['show_ui']; 401 397 402 $default_caps = array( 398 403 'manage_terms' => 'manage_categories', 399 404 'edit_terms' => 'manage_categories',