Skip to content

Duplicate meta fields synced #11

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions