Changeset 62178 for trunk/src/wp-includes/class-wp-roles.php
- Timestamp:
- 03/30/2026 05:31:56 AM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-roles.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-roles.php
r61404 r62178 172 172 * @param array<string,bool>|array<int,string> $capabilities Capabilities to be added to the role. 173 173 * Default empty array. 174 * @return WP_Role| voidWP_Role object, if the role is added.174 * @return WP_Role|null WP_Role object, if the role is added. 175 175 */ 176 176 public function add_role( $role, $display_name, $capabilities = array() ) { 177 177 if ( empty( $role ) || isset( $this->roles[ $role ] ) ) { 178 return ;178 return null; 179 179 } 180 180
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)