Ticket #2223: users.php.patch
File users.php.patch, 843 bytes (added by , 12 years ago) |
---|
-
includes/admin/users.php
56 56 57 57 // Process bulk role change 58 58 add_action( 'load-users.php', array( $this, 'user_role_bulk_change' ) ); 59 60 add_filter( 'editable_roles', array( $this, 'add_dynamic_roles_to_wp_new_user' ) ); 61 59 62 } 60 63 61 64 /** … … 245 248 // Pass retval through 246 249 return $retval; 247 250 } 251 252 /** 253 * Adds bbp custom roles to the new user role dropdown in the admin 254 * 255 * @param $all_roles 256 * 257 * @return array 258 */ 259 public function add_dynamic_roles_to_wp_new_user( $all_roles ) { 260 return array_merge( $all_roles, bbp_get_dynamic_roles() ); 248 261 } 262 263 } 249 264 new BBP_Users_Admin(); 250 265 endif; // class exists