mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Remove inaccurate @return value from remove_role(). props tivnet. fixes #25450.
Built from https://develop.svn.wordpress.org/trunk@25653 git-svn-id: http://core.svn.wordpress.org/trunk@25570 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ddd4473714
commit
8bda461ca9
@ -1407,7 +1407,6 @@ function add_role( $role, $display_name, $capabilities = array() ) {
|
|||||||
* @since 2.0.0
|
* @since 2.0.0
|
||||||
*
|
*
|
||||||
* @param string $role Role name.
|
* @param string $role Role name.
|
||||||
* @return null
|
|
||||||
*/
|
*/
|
||||||
function remove_role( $role ) {
|
function remove_role( $role ) {
|
||||||
global $wp_roles;
|
global $wp_roles;
|
||||||
@ -1415,7 +1414,7 @@ function remove_role( $role ) {
|
|||||||
if ( ! isset( $wp_roles ) )
|
if ( ! isset( $wp_roles ) )
|
||||||
$wp_roles = new WP_Roles();
|
$wp_roles = new WP_Roles();
|
||||||
|
|
||||||
return $wp_roles->remove_role( $role );
|
$wp_roles->remove_role( $role );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user