Changeset 3242

Show
Ignore:
Timestamp:
11/30/05 07:32:43 (3 years ago)
Author:
ryan
Message:

Return role object after adding.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/capabilities.php

    r3238 r3242  
    3232        $this->role_objects[$role] = new WP_Role($role, $capabilities); 
    3333        $this->role_names[$role] = $display_name; 
     34        return $this->role_objects[$role]; 
    3435    } 
    3536