Make WordPress Core


Ignore:
Timestamp:
02/05/2008 06:47:27 AM (17 years ago)
Author:
ryan
Message:

Trailing whitespace cleanup

File:
1 edited

Legend:

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

    r6551 r6726  
    1 <?php 
     1<?php
    22
    33class WP_Categories_to_Tags {
     
    2020        foreach ( $categories as $category ) {
    2121            if ( !tag_exists($wpdb->escape($category->name)) )
    22                 $this->all_categories[] = $category;   
     22                $this->all_categories[] = $category;
    2323        }
    2424    }
     
    5454        }
    5555        checkflag = 'true';
    56         return '<?php _e('Uncheck All') ?>'; 
     56        return '<?php _e('Uncheck All') ?>';
    5757    } else {
    5858        for ( i = 0; i < field.length; i++ ) {
     
    6161        }
    6262        checkflag = 'false';
    63         return '<?php _e('Check All') ?>'; 
     63        return '<?php _e('Check All') ?>';
    6464    }
    6565}
     
    7777        foreach ($this->all_categories as $category) {
    7878            $category = sanitize_term( $category, 'category', 'display' );
    79        
     79
    8080            if ((int) $category->parent == 0) {
    8181                echo '<li><label><input type="checkbox" name="cats_to_convert[]" value="' . intval($category->term_id) . '" /> ' . $category->name . ' (' . $category->count . ')</label>';
     
    165165                    $posts = get_objects_in_term($category->term_id, 'category');
    166166                    foreach ( $posts as $post ) {
    167                         if ( !$wpdb->get_var("SELECT object_id FROM $wpdb->term_relationships WHERE object_id = '$post' AND term_taxonomy_id = '$id'") )                       
     167                        if ( !$wpdb->get_var("SELECT object_id FROM $wpdb->term_relationships WHERE object_id = '$post' AND term_taxonomy_id = '$id'") )
    168168                            $wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id) VALUES ('$post', '$id')");
    169169                        clean_post_cache($post);
Note: See TracChangeset for help on using the changeset viewer.