mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
Ian Dunn
b55ffd3cfa
Privacy: Require
manage_privacy_options
to edit policy page.
A user is required to have the `manage_privacy_options` capability in order to determine which page is set as the privacy policy (the `wp_page_for_privacy_policy`). Given that, it doesn't make sense to allow users without that capability to edit or delete the page. A similar situation exists with the `page_for_posts` and `page_on_front` options, but Editors are allowed to edit those pages. The reason that this situation is different is because it is more likely that an administrator will want to restrict modifications to the privacy policy, than it is that they will want to allow modifications. Modifications to the policy often require specialized knowledge of local laws, and can have implications for compliance with those laws. Props dlh, desrosj. Merges [43286] to the 4.9 branch. Fixes #44079. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43287 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.4%
CSS
8.9%
JavaScript
8.2%
SCSS
0.8%
HTML
0.7%