Plugin relocate-upload – Not quite working in 2.7
-
I’m afraid this plugin is not working (at least for me) in WP 2.7 because when a file is first uploaded to the default folder the corresponding row in db table wp_postmeta holds just the filename, not path and filname. So
$attachment_path=get_post_meta($id,"_wp_attached_file",true);
does not get the right value. That is why
if (rename($attachment_path,$new_path))
does not work and returns false.Maybe you should check if the filename is stored with or without path in wp_postmeta and construct $attachment_path accordingly.
https://www.ads-software.com/extend/plugins/relocate-upload/
- The topic ‘Plugin relocate-upload – Not quite working in 2.7’ is closed to new replies.