Changeset 6125 for trunk/wp-admin/import/blogware.php
- Timestamp:
- 09/18/2007 04:32:22 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogware.php
r5087 r6125 92 92 $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); 93 93 $post_id = wp_insert_post($postdata); 94 if ( is_wp_error( $post_id ) ) { 95 return $post_id; 96 } 94 97 if (!$post_id) { 95 98 _e("Couldn't get post ID"); … … 156 159 157 160 $this->file = $file['file']; 158 $this->import_posts(); 161 $result = $this->import_posts(); 162 if ( is_wp_error( $result ) ) 163 return $result; 159 164 wp_import_cleanup($file['id']); 160 165 … … 177 182 break; 178 183 case 1 : 179 $this->import(); 184 $result = $this->import(); 185 if ( is_wp_error( $result ) ) 186 $result->get_error_message(); 180 187 break; 181 188 }
Note: See TracChangeset
for help on using the changeset viewer.