diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
index 908b80c..bd9e2a9 100644
|
a
|
b
|
function bulk_edit_posts( $post_data = null ) { |
| 526 | 526 | $tax_names = get_object_taxonomies( $post ); |
| 527 | 527 | foreach ( $tax_names as $tax_name ) { |
| 528 | 528 | $taxonomy_obj = get_taxonomy($tax_name); |
| 529 | | if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) ) |
| 530 | | $new_terms = $tax_input[$tax_name]; |
| 531 | | else |
| 532 | | $new_terms = array(); |
| 533 | | |
| 534 | | if ( $taxonomy_obj->hierarchical ) |
| 535 | | $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'ids') ); |
| 536 | | else |
| 537 | | $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'names') ); |
| 538 | | |
| 539 | | $post_data['tax_input'][$tax_name] = array_merge( $current_terms, $new_terms ); |
| | 529 | if ( $taxonomy_obj->show_in_quick_edit ) { |
| | 530 | if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) ) |
| | 531 | $new_terms = $tax_input[$tax_name]; |
| | 532 | else |
| | 533 | $new_terms = array(); |
| | 534 | |
| | 535 | if ( $taxonomy_obj->hierarchical ) |
| | 536 | $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'ids') ); |
| | 537 | else |
| | 538 | $current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'names') ); |
| | 539 | |
| | 540 | $post_data['tax_input'][$tax_name] = array_merge( $current_terms, $new_terms ); |
| | 541 | } |
| 540 | 542 | } |
| 541 | 543 | |
| 542 | 544 | if ( isset($new_cats) && in_array( 'category', $tax_names ) ) { |