distributor
distributor copied to clipboard
Media files duplicated after distribution
Distributing multiple posts that use the same image file as post thumbnail, the media file gets duplicated into the receiving site's media library.
Steps to Reproduce
- Assign the same image file to multiple posts in origin site
- Distribute these posts to a subsite
- Check subsite's media library
- See myimage.jpg, myimage-1.jpg, myimage-2.jpg, myimage-3.jpg etc.
Expected behavior Distributor should check if image file is already present in target site, and then (re)use this image.
WordPress 5.7.2 Distributor 1.6.4-dev
@philbraun welcome to Distributor and thanks for the feedback! I agree that your expected behavior would be more ideal, I'm adding this into the 2.1.0 milestone as we have some larger foundational changes we'd like/need to make first before getting to this issue.