Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -315,9 +315,9 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
$taxonomy_obj = get_taxonomy($tax_name);
|
||||
if ( isset( $tax_input[$tax_name]) && current_user_can( $taxonomy_obj->cap->assign_terms ) )
|
||||
$new_terms = $tax_input[$tax_name];
|
||||
else
|
||||
else
|
||||
$new_terms = array();
|
||||
|
||||
|
||||
if ( $taxonomy_obj->hierarchical )
|
||||
$current_terms = (array) wp_get_object_terms( $post_ID, $tax_name, array('fields' => 'ids') );
|
||||
else
|
||||
@@ -325,7 +325,7 @@ function bulk_edit_posts( $post_data = null ) {
|
||||
|
||||
$post_data['tax_input'][$tax_name] = array_merge( $current_terms, $new_terms );
|
||||
}
|
||||
|
||||
|
||||
if ( isset($new_cats) && in_array( 'category', $tax_names ) ) {
|
||||
$cats = (array) wp_get_post_categories($post_ID);
|
||||
$post_data['post_category'] = array_unique( array_merge($cats, $new_cats) );
|
||||
|
||||
Reference in New Issue
Block a user