Make WordPress Core

Ticket #24607: capabilities.php.patch

File capabilities.php.patch, 676 bytes (added by tivnet, 11 years ago)
  • capabilities.php

     
    239239         * @access public
    240240         *
    241241         * @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.
    243243         */
    244244        function get_role( $role ) {
    245245                if ( isset( $this->role_objects[$role] ) )
     
    13741374 * @since 2.0.0
    13751375 *
    13761376 * @param string $role Role name.
    1377  * @return object
     1377 * @return WP_Role|null
    13781378 */
    13791379function get_role( $role ) {
    13801380        global $wp_roles;