bobbingwide / oik-clone

Clone content between sites
https://www.oik-plugins.com/oik-plugins/oik-clone-clone-your-wordpress-content/
GNU General Public License v2.0
5 stars 0 forks source link

Using [clone] to clone attached media that's been relocated doesn't work correctly. #12

Closed bobbingwide closed 8 years ago

bobbingwide commented 8 years ago

In oik-plugins and oik-themes, for freely available plugins and themes, the attached .ZIP files can be stored in the wp-content/uploads directory without any concerns.

For premium plugins and themes these files need to be protected. This is catered for by relocating them to a server defined location when they are first uploaded. Update requests for premium versions check the user's authority to download new versions.

When cloning the ZIP files attached to premium plugin and theme versions, the oik-clone plugin does not take the relocation into account.

Similarly, cloning doesn't work too well for EDD "downloads" and its attached files.

Temporary workaround

ftp the files before cloning.

bobbingwide commented 8 years ago

Proposed solution

Develop a filter to allow the relocating plugin/theme to advise the actual file name of the attached file. The filter name will be "oik_clone_filter_media_file". This will need to be implemented by oik-plugins and oik-themes.