Changeset 4495 for trunk/wp-admin/import/blogware.php
- Timestamp:
- 11/19/2006 07:56:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogware.php
r4424 r4495 21 21 return strtr($string, $trans_tbl); 22 22 } 23 23 24 24 function greet() { 25 25 echo '<div class="narrow">'; … … 31 31 function import_posts() { 32 32 global $wpdb, $current_user; 33 33 34 34 set_magic_quotes_runtime(0); 35 35 $importdata = file($this->file); // Read the file into an array … … 40 40 $posts = $posts[1]; 41 41 unset($importdata); 42 echo '<ol>'; 42 echo '<ol>'; 43 43 foreach ($posts as $post) { 44 44 flush(); … … 103 103 preg_match_all('|<comment>(.*?)</comment>|is', $post, $comments); 104 104 $comments = $comments[1]; 105 105 106 106 if ( $comments ) { 107 107 $comment_post_ID = $post_id; … … 158 158 $this->import_posts(); 159 159 wp_import_cleanup($file['id']); 160 160 161 161 echo '<h3>'; 162 162 printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home')); … … 171 171 172 172 $this->header(); 173 173 174 174 switch ($step) { 175 175 case 0 : … … 180 180 break; 181 181 } 182 182 183 183 $this->footer(); 184 184 } 185 185 186 186 function BW_Import() { 187 // Nothing. 187 // Nothing. 188 188 } 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.