[wp-trac] [WordPress Trac] #20741: set_user_role action second argument not being passed

WordPress Trac wp-trac at lists.automattic.com
Thu May 24 00:58:12 UTC 2012


#20741: set_user_role action second argument not being passed
-----------------------------+----------------------
 Reporter:  hamidnazari      |       Owner:
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Role/Capability  |     Version:  3.3.2
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |
-----------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Receiving the old role is a duplicate of another ticket.

 You are only getting one argument because add_action() defaults to one
 argument.

 add_action( $tag, $function_to_add, $priority = 10, $accepted_args = 1 )

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20741#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list