Changeset 4953 for trunk/wp-admin/import/blogger.php
- Timestamp:
- 02/27/2007 03:24:54 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/blogger.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogger.php
r4896 r4953 56 56 } 57 57 $this->token = $matches[1]; 58 58 59 59 wp_redirect( remove_query_arg( array( 'token', 'noheader' ) ) ); 60 60 } … … 370 370 if ( ! $sock ) return; // TODO: Error handling 371 371 $response = $this->_txrx( $sock, $request ); 372 372 373 373 $response = $this->parse_response( $response ); 374 374 375 375 // Extract the entries and send for insertion 376 376 preg_match_all( '/<entry[^>]*>.*?<\/entry>/s', $response['body'], $matches ); … … 438 438 $entry = "<feed>$entry</feed>"; 439 439 $AtomParser = new AtomParser(); 440 $AtomParser->parse( $entry ); 440 $AtomParser->parse( $entry ); 441 441 $this->import_comment($AtomParser->entry); 442 442 unset($AtomParser); … … 624 624 $options .= "<option value='$user->user_id'$sel>$user->display_name</option>"; 625 625 } 626 626 627 627 return $options; 628 628 } … … 707 707 global $wpdb; 708 708 $options = get_option( 'blogger_importer' ); 709 709 710 710 if ( isset( $options['token'] ) ) 711 711 $this->revoke( $options['token'] ); … … 923 923 array_push($this->entry->categories, $attrs['term']); 924 924 } 925 925 926 926 $this->ns_decls = array(); 927 927 } … … 951 951 952 952 array_shift($this->ns_contexts); 953 953 954 954 #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n"; 955 955
Note: See TracChangeset
for help on using the changeset viewer.