Changeset 47280 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 02/11/2020 09:46:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r47269 r47280 133 133 */ 134 134 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 135 $caps [] = 'manage_privacy_options';135 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 136 136 } 137 137 … … 204 204 */ 205 205 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 206 $caps [] = 'manage_privacy_options';206 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) ); 207 207 } 208 208 … … 581 581 } 582 582 break; 583 case 'export_others_personal_data': 584 case 'erase_others_personal_data': 585 case 'manage_privacy_options': 586 $caps[] = is_multisite() ? 'manage_network' : 'manage_options'; 587 break; 583 588 default: 584 589 // Handle meta capabilities for custom post types.
Note: See TracChangeset
for help on using the changeset viewer.