Changeset 24491
- Timestamp:
- 06/21/2013 01:01:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r24316 r24491 159 159 * @param string $display_name Role display name. 160 160 * @param array $capabilities List of role capabilities in the above format. 161 * @return null|WP_RoleWP_Role object if role is added, null if already exists.161 * @return WP_Role|null WP_Role object if role is added, null if already exists. 162 162 */ 163 163 function add_role( $role, $display_name, $capabilities = array() ) { … … 240 240 * 241 241 * @param string $role Role name. 242 * @return object|null Null, if role does not exist. WP_Role object, if found.242 * @return WP_Role|null WP_Role object if found, null if the role does not exist. 243 243 */ 244 244 function get_role( $role ) { … … 1375 1375 * 1376 1376 * @param string $role Role name. 1377 * @return object1377 * @return WP_Role|null WP_Role object if found, null if the role does not exist. 1378 1378 */ 1379 1379 function get_role( $role ) { … … 1395 1395 * @param string $display_name Display name for role. 1396 1396 * @param array $capabilities List of capabilities, e.g. array( 'edit_posts' => true, 'delete_posts' => false ); 1397 * @return null|WP_RoleWP_Role object if role is added, null if already exists.1397 * @return WP_Role|null WP_Role object if role is added, null if already exists. 1398 1398 */ 1399 1399 function add_role( $role, $display_name, $capabilities = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.