Make WordPress Core


Ignore:
Timestamp:
08/09/2008 05:36:14 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wp-cat2tag.php

    r8279 r8600  
    104104                 if ( in_array( intval($category->term_id),  $this->hybrids_ids ) )
    105105                    echo ' <a href="#note"> * </a>';
    106                
     106
    107107                if ( isset($hier[$category->term_id]) )
    108108                    $this->_category_children($category, $hier); ?></li>
     
    244244                    if ( ! ($id = is_term( $category->slug, 'post_tag' ) ) )
    245245                        $id = wp_insert_term($category->name, 'post_tag', array('slug' => $category->slug));
    246                    
     246
    247247                    $id = $id['term_taxonomy_id'];
    248248                    $posts = get_objects_in_term($category->term_id, 'category');
     
    253253                        clean_post_cache($post);
    254254                    }
    255                    
     255
    256256                    if ( $values ) {
    257257                        $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)");
     
    263263                    continue;
    264264                }
    265                
     265
    266266                // if tag already exists, add it to all posts in the category
    267267                if ( $tag_ttid = $wpdb->get_var( $wpdb->prepare("SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'post_tag'", $category->term_id) ) ) {
Note: See TracChangeset for help on using the changeset viewer.