Changeset 47280 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 02/11/2020 09:46:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r47269 r47280 696 696 populate_roles_280(); 697 697 populate_roles_300(); 698 populate_roles_540();699 698 } 700 699 … … 925 924 } 926 925 927 /**928 * Create and modify WordPress roles for WordPress 5.4.0.929 *930 * @since 5.4.0931 */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 948 926 if ( ! function_exists( 'install_network' ) ) : 949 927 /**
Note: See TracChangeset
for help on using the changeset viewer.