Changeset 47269 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 02/11/2020 06:34:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r47219 r47269 133 133 */ 134 134 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 135 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) );135 $caps[] = 'manage_privacy_options'; 136 136 } 137 137 … … 204 204 */ 205 205 if ( (int) get_option( 'wp_page_for_privacy_policy' ) === $post->ID ) { 206 $caps = array_merge( $caps, map_meta_cap( 'manage_privacy_options', $user_id ) );206 $caps[] = 'manage_privacy_options'; 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;588 583 default: 589 584 // Handle meta capabilities for custom post types.
Note: See TracChangeset
for help on using the changeset viewer.