Changeset 10157 for trunk/wp-admin/import/wordpress.php
- Timestamp:
- 12/09/2008 09:50:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r10021 r10157 107 107 if ( !$is_wxr_file && preg_match('|xmlns:wp="http://wordpress[.]org/export/\d+[.]\d+/"|', $importline) ) 108 108 $is_wxr_file = true; 109 109 110 110 if ( false !== strpos($importline, '<wp:base_site_url>') ) { 111 111 preg_match('|<wp:base_site_url>(.*?)</wp:base_site_url>|is', $importline, $url); … … 414 414 echo '<li>'; 415 415 printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title)); 416 $comment_post_ID = $post_id = $post_exists; 416 $comment_post_ID = $post_id = $post_exists; 417 417 } else { 418 418 … … 559 559 if ($this->fetch_attachments and $remote_url) { 560 560 printf( __('Importing attachment <em>%s</em>... '), htmlspecialchars($remote_url) ); 561 561 562 562 // If the URL is absolute, but does not contain http, upload it assuming the base_site_url variable 563 563 if ( preg_match('/^\/[\w\W]+$/', $remote_url) ) 564 564 $remote_url = rtrim($this->base_url,'/').$remote_url; 565 565 566 566 $upload = $this->fetch_remote_file($postdata, $remote_url); 567 567 if ( is_wp_error($upload) ) {
Note: See TracChangeset
for help on using the changeset viewer.