OSDN Git Service

For local media imports, copy to tempfile before importing
authorgoldenapples <goldenapplesdesign@gmail.com>
Fri, 26 Apr 2013 21:39:04 +0000 (14:39 -0700)
committergoldenapples <goldenapplesdesign@gmail.com>
Fri, 26 Apr 2013 21:39:04 +0000 (14:39 -0700)
commitcd784fd2c51f72a18cc81e53e8b72a79d6debe8d
treeb53daf3ef93755e84e4c77e2e8430a2d060cf258
parent661169fd55ee5124cf0003665cede7c37e8e1f6e
For local media imports, copy to tempfile before importing

Apparently `wp_handle_sideload` performs a`rename()` operation on the
file it's sideloading. In this case thats an unexpected side effect -
you don't want the original image to go away when importing it to
WordPress.
php/commands/media.php