WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/11/2020 09:46:54 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Privacy: Revert [47269] for now to address side effects on Multisite installations.

See #44176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r47269 r47280  
    133133             */
    134134            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 ) );
    136136            }
    137137
     
    204204             */
    205205            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 ) );
    207207            }
    208208
     
    581581            }
    582582            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;
    583588        default:
    584589            // Handle meta capabilities for custom post types.
Note: See TracChangeset for help on using the changeset viewer.