Hi llb0536,
Thanks for taking a look at WPSiteSync!
We would like to ask you to submit a support request at https://serverpress.com/contact/ for these issues so that we can better track them. We do have some questions about what you have submitted here. Also, if you could submit a pull request via our public repository for WPSiteSync at https://github.com/ServerPress/wpsitesync that would help to get a better idea of the exact code changes you’re suggesting.
Once you’ve done that, we’d appreciate it if you could mark this issue as resolved here in the WP forums.
Thanks and we look forward to working with you on these issues to make WPSiteSync a better product.
Hi llb0536,
Checking in again to see if you could please take the time to submit a pull request at https://github.com/ServerPress/wpsitesync for your changes. We have reviewed your proposed changes but we’re having trouble verifying what the effects would be. So a pull request would give us a much clearer view of what you’re suggesting.
Specifically, the logic issue in lines 716..789 is not a bug but rather intentional. We only want to Push attachments that are part of the Source site (i.e. in the Media Library or somewhere else on the Source site’s domain) and not external references. This is because those external references will still be external references on the Target site. But local images do need to be Pushed, so this part of the code looks for those and sets them up to be sent along with the content.
We do, however, need to upload files (images or PDFs) to the Target site as these can be changed on the Source site. The Target site’s logic in handling these requests will replace the modified resource references to make all of the content on the Source match on the Target.
And the code on line 330 of apicontroller.php is already commented out so removing it has no real effect. The references to the Source site’s domain are correctly updated with the Target site’s domain in another area.
We don’t believe any of these are problems and we have not had any customers reporting issues in these areas. But we’d really appreciate the opportunty to work with you on these and clear up any problems if they do indeed exist.
Thanks for your interest and we hope to hear from you soon.