Make WordPress Core

Ticket #40801: 40801.diff

File 40801.diff, 1.3 KB (added by vijustin, 8 years ago)
  • src/wp-admin/includes/post.php

    diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
    index 8055a7b7dc..f6c903e485 100644
    a b function bulk_edit_posts( $post_data = null ) { 
    541541                }
    542542
    543543                if ( isset($new_cats) && in_array( 'category', $tax_names ) ) {
    544                         $cats = (array) wp_get_post_categories($post_ID);
    545                         $post_data['post_category'] = array_unique( array_merge($cats, $new_cats) );
     544                        // $cats = (array) wp_get_post_categories($post_ID);
     545                        // $post_data['post_category'] = array_unique( array_merge($cats, $new_cats) );
    546546                        unset( $post_data['tax_input']['category'] );
    547547                }
    548548