Changeset 33967 for trunk/src/wp-includes/capabilities-functions.php
- Timestamp:
- 09/09/2015 03:41:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/capabilities-functions.php
r33752 r33967 472 472 */ 473 473 function add_role( $role, $display_name, $capabilities = array() ) { 474 if ( empty( $role ) ) { 475 return; 476 } 474 477 return wp_roles()->add_role( $role, $display_name, $capabilities ); 475 478 }
Note: See TracChangeset
for help on using the changeset viewer.