Remove inaccurate @return value from remove_role(). props tivnet. fixes #25450.
git-svn-id: https://develop.svn.wordpress.org/trunk@25653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
85c8f3c68f
commit
7e18d18db5
@ -1407,7 +1407,6 @@ function add_role( $role, $display_name, $capabilities = array() ) {
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param string $role Role name.
|
||||
* @return null
|
||||
*/
|
||||
function remove_role( $role ) {
|
||||
global $wp_roles;
|
||||
@ -1415,7 +1414,7 @@ function remove_role( $role ) {
|
||||
if ( ! isset( $wp_roles ) )
|
||||
$wp_roles = new WP_Roles();
|
||||
|
||||
return $wp_roles->remove_role( $role );
|
||||
$wp_roles->remove_role( $role );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user