This fixes #357. When running a WordPress action (user_register, etc.), this makes sure that the ID represents a WordPress object. If it fails to create a user without causing a WP error, for example, this will keep it from trying to create a Salesforce record.
How do I test this PR?
I found this issue when testing spam users. The user wasn't being created, but it also wasn't flagging an error so the plugin was trying to move on with it. This fixes that.
What does this PR do?
This fixes #357. When running a WordPress action (
user_register
, etc.), this makes sure that the ID represents a WordPress object. If it fails to create a user without causing a WP error, for example, this will keep it from trying to create a Salesforce record.How do I test this PR?
I found this issue when testing spam users. The user wasn't being created, but it also wasn't flagging an error so the plugin was trying to move on with it. This fixes that.