Ticket #26948: taxonomy_quick_edit3.diff
File taxonomy_quick_edit3.diff, 2.1 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/class-wp-posts-list-table.php
752 752 $hierarchical_taxonomies = array(); 753 753 $flat_taxonomies = array(); 754 754 foreach ( $taxonomy_names as $taxonomy_name ) { 755 756 $show_taxonomy = apply_filters( 'quick_edit_show_taxonomy', true, $taxonomy_name, $screen->post_type ); 757 758 if( ! $show_taxonomy ) { 759 continue; 760 } 761 755 762 $taxonomy = get_taxonomy( $taxonomy_name ); 756 763 764 if( ! $taxonomy->show_in_quick_edit ) { 765 continue; 766 } 767 757 768 if ( !$taxonomy->show_ui ) 758 769 continue; 759 770 -
wp-includes/taxonomy.php
289 289 * * If not set, the default is inherited from public. 290 290 * - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget. 291 291 * * If not set, the default is inherited from show_ui. 292 * - show_in_quick_edit - Whether to show the taxonomy in the quick/bulk edit panel. 293 * * It not set, the default is inherited from show_ui. 292 294 * - show_admin_column - Whether to display a column for the taxonomy on its post type listing screens. 293 295 * * Defaults to false. 294 296 * - meta_box_cb - Provide a callback function for the meta box display. … … 338 340 'show_in_menu' => null, 339 341 'show_in_nav_menus' => null, 340 342 'show_tagcloud' => null, 343 'show_in_quick_edit' => null, 341 344 'show_admin_column' => false, 342 345 'meta_box_cb' => null, 343 346 'capabilities' => array(), … … 394 397 if ( null === $args['show_tagcloud'] ) 395 398 $args['show_tagcloud'] = $args['show_ui']; 396 399 400 // If not set, default to the setting for show_ui. 401 if ( null === $args['show_in_quick_edit'] ) 402 $args['show_in_quick_edit'] = $args['show_ui']; 403 397 404 $default_caps = array( 398 405 'manage_terms' => 'manage_categories', 399 406 'edit_terms' => 'manage_categories',