Setup a mapping that Prematches on a metavalue for a metakey ( e.g. "salesforce_id" ).
Create a post and add that postmeta key.
Initiate a sync with a Salesforce record that has a value that matches the metavalue of a pre-existing post.
Check that the new row created in wp_2020_object_sync_sf_object_map has the same post_id as the pre-existing post's ID, and a new/duplicate post is not created.
What does this Pull Request do?
Fixes undefined WP_Query method bug #484
How do I test this Pull Request?
wp_2020_object_sync_sf_object_map
has the same post_id as the pre-existing post's ID, and a new/duplicate post is not created.