From 1dae83d0247daa9852b65280054973566d301f43 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 Nov 2005 07:32:43 +0000 Subject: [PATCH] Return role object after adding. git-svn-id: https://develop.svn.wordpress.org/trunk@3242 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/capabilities.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 27b76f3244..a3ac04f5cd 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -31,6 +31,7 @@ class WP_Roles { update_option($this->role_key, $this->roles); $this->role_objects[$role] = new WP_Role($role, $capabilities); $this->role_names[$role] = $display_name; + return $this->role_objects[$role]; } function remove_role($role) {