How to fix 301 error when importing blog posts including images from a blog into a new blog

The current import script (as of WordPress 2.8.6) is broken when it comes to successfully importing images from The error you see is something like Remote file error: Remote file returned error response 301 Moved Permanently Fixing this involves adding a couple of lines to a core WordPress file. Hopefully a future version of […]