Title: dramaley's Replies | WordPress.org

---

# dramaley

  [  ](https://wordpress.org/support/users/dramaley/)

 *   [Profile](https://wordpress.org/support/users/dramaley/)
 *   [Topics Started](https://wordpress.org/support/users/dramaley/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dramaley/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dramaley/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dramaley/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dramaley/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dramaley/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress Importer Tries to save media files to wrong site folder](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/)
 *  [dramaley](https://wordpress.org/support/users/dramaley/)
 * (@dramaley)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/#post-4316117)
 * The wp-allow-hosts plugin looks very helpful. I’m still not sure i understand
   the rationale for the “feature” that blocks downloads when doing an import, but
   the next time we have to do an import i will definitely give your plugin a try.
   Thanks!
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress Importer Tries to save media files to wrong site folder](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/)
 *  [dramaley](https://wordpress.org/support/users/dramaley/)
 * (@dramaley)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/#post-4316088)
 * The lines in my patch are not the same; you omitted the “//” at the beginning
   of the second set. Obviously “diff” would not have flagged them as being different
   if they were in fact the same.
 * And yes, i know core files shouldn’t be edited. But that’s as far back as i was
   able to trace the error. I’m not suggesting my patch be implemented, just using
   a patch to point out where exactly the problem seems to be. I’m assuming that
   patch will break something else. But, it does at least allow the importer to 
   work correctly!
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [WordPress Importer Tries to save media files to wrong site folder](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/)
 *  [dramaley](https://wordpress.org/support/users/dramaley/)
 * (@dramaley)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wordpress-importer-tries-to-save-media-files-to-wrong-site-folder/#post-4316085)
 * I’ve created a patch that will work around this issue. This patch is for WordPress
   3.6.1. It is a hack, not something that should be taken very seriously except
   that it points out where the problem may be. I don’t know PHP, but was able to
   trace it back to this point before giving up. I expect someone with more familiarity
   with the WordPress code base could figure out what the problem is once they see
   the patch and see what code is being modified.
 * I did notice that the code is doing a lot of checks against the IP of the remote
   server. I’m not sure the justification for checking whether the remote server
   is on a private network, but that may be part of the issue. The server we exported
   from is on 10.10.2.16, while the server we import on is 10.10.1.206. Both are
   on the same private network.
 * The patch is available here: [http://pastebin.com/LeVtWKhX](http://pastebin.com/LeVtWKhX)

Viewing 3 replies - 1 through 3 (of 3 total)