Changeset 53436 for trunk/src/wp-includes/capabilities.php
- Timestamp:
- 05/23/2022 02:59:44 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities.php
r53408 r53436 1021 1021 * @param bool[] $capabilities List of capabilities keyed by the capability name, 1022 1022 * e.g. array( 'edit_posts' => true, 'delete_posts' => false ). 1023 * @return WP_Role| null WP_Role object if role is added, null if already exists.1023 * @return WP_Role|void WP_Role object, if the role is added. 1024 1024 */ 1025 1025 function add_role( $role, $display_name, $capabilities = array() ) { … … 1027 1027 return; 1028 1028 } 1029 1029 1030 return wp_roles()->add_role( $role, $display_name, $capabilities ); 1030 1031 }
Note: See TracChangeset
for help on using the changeset viewer.