mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -176,7 +176,7 @@ class WP_Roles {
|
||||
* @param string $role Role name.
|
||||
* @param string $display_name Role display name.
|
||||
* @param array $capabilities List of role capabilities in the above format.
|
||||
* @return WP_Role|null WP_Role object if role is added, null if already exists.
|
||||
* @return WP_Role|void WP_Role object, if role is added.
|
||||
*/
|
||||
public function add_role( $role, $display_name, $capabilities = array() ) {
|
||||
if ( isset( $this->roles[$role] ) )
|
||||
|
||||
Reference in New Issue
Block a user