[wp-trac] [WordPress Trac] #44079: Require `manage_privacy_options` capability to edit the privacy policy page

WordPress Trac noreply at wordpress.org
Tue May 15 02:18:39 UTC 2018


#44079: Require `manage_privacy_options` capability to edit the privacy policy page
-------------------------------------------------+-------------------------
 Reporter:  iandunn                              |       Owner:  iandunn
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  4.9.6
Component:  Administration                       |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  gdpr has-patch 2nd-opinion needs-    |     Focuses:
  unit-tests needs-testing                       |
-------------------------------------------------+-------------------------

Comment (by dlh):

 There are currently exceptions for `page_for_posts` and `page_on_front` in
 `map_meta_cap()` itself: https://github.com/WordPress/wordpress-
 develop/blob/e72d50370273c2741329e1a102ec90b35cf1b492/src/wp-
 includes/capabilities.php#L76.

 I'm curious whether exceptions for `wp_page_for_privacy_policy` could or
 should go in `map_meta_cap()` as well?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44079#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list