Changeset 47269 for trunk/src/wp-admin/includes/schema.php
- Timestamp:
- 02/11/2020 06:34:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/schema.php
r47122 r47269 696 696 populate_roles_280(); 697 697 populate_roles_300(); 698 populate_roles_540(); 698 699 } 699 700 … … 924 925 } 925 926 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 926 948 if ( ! function_exists( 'install_network' ) ) : 927 949 /**
Note: See TracChangeset
for help on using the changeset viewer.