Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate meta fields synced #11

Open
ghost opened this issue Dec 12, 2016 · 1 comment
Open

Duplicate meta fields synced #11

ghost opened this issue Dec 12, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 12, 2016

In certain situations syncing posts seems to create duplicate meta fields with same values.

I'll have to do more testing with this but this could be fixes by switching add_post_meta() call to update_post_meta() in save_meta_fields().

Update call will create meta field if it's missing so change will be backwards compatible. More info: https://codex.wordpress.org/Function_Reference/update_post_meta

@tw2113
Copy link
Member

tw2113 commented Dec 12, 2016

Possible that the duplicates already exist in the source site/table, for what it's worth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant