Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (20 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

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

    r4424 r4495  
    2121                return strtr($string, $trans_tbl);
    2222        }
    23        
     23
    2424        function greet() {
    2525                echo '<div class="narrow">';
    … …  
    3131        function import_posts() {
    3232                global $wpdb, $current_user;
    33                
     33
    3434                set_magic_quotes_runtime(0);
    3535                $importdata = file($this->file); // Read the file into an array
    … …  
    4040                $posts = $posts[1];
    4141                unset($importdata);
    42                 echo '<ol>';           
     42                echo '<ol>';
    4343                foreach ($posts as $post) {
    4444                        flush();
    … …  
    103103                        preg_match_all('|<comment>(.*?)</comment>|is', $post, $comments);
    104104                        $comments = $comments[1];
    105                        
     105
    106106                        if ( $comments ) {
    107107                                $comment_post_ID = $post_id;
    … …  
    158158                $this->import_posts();
    159159                wp_import_cleanup($file['id']);
    160                
     160
    161161                echo '<h3>';
    162162                printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
    … …  
    171171
    172172                $this->header();
    173                
     173
    174174                switch ($step) {
    175175                        case 0 :
    … …  
    180180                                break;
    181181                }
    182                
     182
    183183                $this->footer();
    184184        }
    185185
    186186        function BW_Import() {
    187                 // Nothing.     
     187                // Nothing.
    188188        }
    189189}
Note: See TracChangeset for help on using the changeset viewer.