Make WordPress Core


Ignore:
Timestamp:
02/11/2020 09:46:54 PM (5 years 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-admin/includes/schema.php

    r47269 r47280  
    696696    populate_roles_280();
    697697    populate_roles_300();
    698     populate_roles_540();
    699698}
    700699
     
    925924}
    926925
    927 /**
    928  * Create and modify WordPress roles for WordPress 5.4.0.
    929  *
    930  * @since 5.4.0
    931  */
    932 function populate_roles_540() {
    933     // Add the privacy caps to the Administrators.
    934     $role = get_role( 'administrator' );
    935 
    936     if ( ! empty( $role ) ) {
    937         $role->add_cap( 'export_others_personal_data' );
    938         $role->add_cap( 'erase_others_personal_data' );
    939         $role->add_cap( 'manage_privacy_options' );
    940     }
    941 
    942     $role = get_role( 'editor' );
    943     if ( ! empty( $role ) ) {
    944         $role->add_cap( 'manage_privacy_options' );
    945     }
    946 }
    947 
    948926if ( ! function_exists( 'install_network' ) ) :
    949927    /**
Note: See TracChangeset for help on using the changeset viewer.