Ticket #24607: capabilities.php.patch
File capabilities.php.patch, 676 bytes (added by , 11 years ago) |
---|
-
capabilities.php
239 239 * @access public 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 Null, if role does not exist. WP_Role object, if found. 243 243 */ 244 244 function get_role( $role ) { 245 245 if ( isset( $this->role_objects[$role] ) ) … … 1374 1374 * @since 2.0.0 1375 1375 * 1376 1376 * @param string $role Role name. 1377 * @return object1377 * @return WP_Role|null 1378 1378 */ 1379 1379 function get_role( $role ) { 1380 1380 global $wp_roles;