Add privacy policy content registration#869
Add privacy policy content registration#869masteradhoc wants to merge 3 commits intoWordPress:masterfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
jeffpaul
left a comment
There was a problem hiding this comment.
Functional approach and rationale sounds fine to me, will defer to others on technical review of implementation.
|
Looks good to me. The "Two Factor" section appears in the Privacy Policy Guide as expected as soon as the plugin is activated. If it's deactivated/deleted, a notice remains to warn the user that the policy may need to be updated to remove references to Two-Factor. Very nice. Some potential problems I want to flag: As worded now, the PR registers privacy policy text that makes three claims that are not aligned with the plugin's current functionality:
At a minimum, the claims being made should be softened to match what the code actually does, or else the code needs to do what the policy claims: register privacy exporters/erasers and actually delete provider data on disable. Because of the policy context, all written claims should be precise and defensible, legally and technically. |
|
Thanks @dknauss, seems correct. I've adjusted the text now. What do you think? |
|
@masteradhoc it looks fine now. 👍 |
|
@masteradhoc Actually, here are two tiny nitpicky polishing details to note:
Neither feels blocking to me. |

What?
Fixes #868
Adds suggested privacy policy content for the Two Factor plugin via the WordPress Privacy Policy Guide (
wp_add_privacy_policy_content).Why?
WordPress provides a built-in mechanism for plugins to contribute suggested text to a site's privacy policy page. The Two Factor plugin stores personal data (TOTP secret keys, backup codes, enabled provider settings) but has never registered suggested privacy policy text, leaving site administrators without guidance on what to disclose.
How?
admin_initaction that calls a new static methodTwo_Factor_Core::add_privacy_policy_content().wp_add_privacy_policy_content()with a suggested block of text covering:Testing Instructions
Screenshots or screencast
Changelog Entry
Added - Register suggested privacy policy content via
wp_add_privacy_policy_contentso site administrators are guided on disclosing Two Factor authentication data.