WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/17/2010 04:27:25 PM (10 years ago)
Author:
ryan
Message:

Trim trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r13729 r13733  
    271271            unset($post_data['post_category']);
    272272    }
    273    
     273
    274274    $tax_input = array();
    275275    if ( isset($post_data['tax_input'])) {
     
    279279            $taxonomy = get_taxonomy( $tax_name );
    280280            if ( $taxonomy->hierarchical )
    281                 $tax_input[$tax_name] = array_map( 'absint', $terms );         
     281                $tax_input[$tax_name] = array_map( 'absint', $terms );
    282282            else {
    283283                $tax_input[$tax_name] = preg_replace( '/\s*,\s*/', ',', rtrim( trim($terms), ' ,' ) );
     
    315315            continue;
    316316        }
    317        
     317
    318318        $tax_names = get_object_taxonomies( get_post($post_ID) );
    319        
     319
    320320        if ( isset($new_cats) && in_array( 'category', $tax_names ) ) {
    321321            $cats = (array) wp_get_post_categories($post_ID);
    322322            $post_data['post_category'] = array_unique( array_merge($cats, $new_cats) );
    323323        }
    324        
     324
    325325        foreach ( $tax_names as $tax_name ) {
    326326            if( isset( $tax_input[$tax_name])  ) {
Note: See TracChangeset for help on using the changeset viewer.