Privacy: Revert [47269] for now to address side effects on Multisite installations.
See #44176. Built from https://develop.svn.wordpress.org/trunk@47280 git-svn-id: http://core.svn.wordpress.org/trunk@47080 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -695,7 +695,6 @@ function populate_roles() {
|
||||
populate_roles_270();
|
||||
populate_roles_280();
|
||||
populate_roles_300();
|
||||
populate_roles_540();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -924,27 +923,6 @@ function populate_roles_300() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and modify WordPress roles for WordPress 5.4.0.
|
||||
*
|
||||
* @since 5.4.0
|
||||
*/
|
||||
function populate_roles_540() {
|
||||
// Add the privacy caps to the Administrators.
|
||||
$role = get_role( 'administrator' );
|
||||
|
||||
if ( ! empty( $role ) ) {
|
||||
$role->add_cap( 'export_others_personal_data' );
|
||||
$role->add_cap( 'erase_others_personal_data' );
|
||||
$role->add_cap( 'manage_privacy_options' );
|
||||
}
|
||||
|
||||
$role = get_role( 'editor' );
|
||||
if ( ! empty( $role ) ) {
|
||||
$role->add_cap( 'manage_privacy_options' );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'install_network' ) ) :
|
||||
/**
|
||||
* Install Network.
|
||||
|
||||
Reference in New Issue
Block a user