﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20741	set_user_role action second argument not being passed	hamidnazari		"According to capabilities.php:608

{{{
do_action( 'set_user_role', $this->ID, $role );
}}}

But the output of this when you change user's role 

{{{
function twentyeleven_set_user_role($user_id, $role) {
	global $wpdb;
	$all_args = func_get_args();
	print_r($all_args);
	exit;
}
add_action( 'set_user_role', 'twentyeleven_set_user_role');
}}}

is

{{{
Array
(
    [0] => 2
)
}}}

where 2 is the user id.

'''Also:''' I wish I could receive both new and old roles in the action. Possible?"	defect (bug)	closed	normal		Role/Capability	3.3.2	normal	invalid		
