You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When resetting the plugin before a user has received an access token, any other user data that might already be present in the database is not cleared.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
When resetting the plugin, all Site Kit user data should be cleared, also when the user does not have an access token yet.
Implementation Brief
In order to determine all the users which need to have their Site Kit data cleared, we need to modify the query to check for any of the meta keys that are set for the user potentially before they have an access token:
Verification_Tag::OPTION
OAuth_Client::OPTION_PROXY_ACCESS_CODE
OAuth_Client::OPTION_ERROR_CODE
We can do that with a meta_query using OR subqueries.
This should happen in the Reset class and (although that is not as crucial) also in the Migration_1_0_0 class.
Changelog entry
Ensure verification tokens and other plugin user data correctly get cleared when resetting the plugin before the user has authenticated.
The text was updated successfully, but these errors were encountered:
Bug Description
When resetting the plugin before a user has received an access token, any other user data that might already be present in the database is not cleared.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Verification_Tag::OPTION
OAuth_Client::OPTION_PROXY_ACCESS_CODE
OAuth_Client::OPTION_ERROR_CODE
meta_query
usingOR
subqueries.Reset
class and (although that is not as crucial) also in theMigration_1_0_0
class.Changelog entry
The text was updated successfully, but these errors were encountered: