[wp-trac] [WordPress Trac] #30887: Imported media relies on GUID for download

WordPress Trac noreply at wordpress.org
Fri Jan 2 21:44:07 UTC 2015


#30887: Imported media relies on GUID for download
--------------------------+-----------------------------
 Reporter:  pathartl      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Import        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When importing media with the importer plugin, the GUID is used as the URL
 for downloading the files. If there is more than two levels of sites
 you're importing between this creates an issue with flow.

 In example, say you have three sites:
 http://siteone.com (Original WP install)
 http://sitetwo.com
 http://sitethree.com

 Exporting from http://siteone.com and importing on http://sitetwo.com the
 files will be downloaded from http://siteone.com.

 However, if you export from http://sitetwo.com and import into
 http://sitethree.com, without changing the GUID, the files will be
 downloaded from http://siteone.com

 In most cases http://siteone.com would be nonexistent or unreachable at
 this point, thus the media items cannot be imported.

 Note that wp_get_attachment_url had this same defect ([ticket:7622])

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30887>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list