[wp-trac] [WordPress Trac] #32060: Add actions for add_role() and remove_role()

WordPress Trac noreply at wordpress.org
Sun Jun 14 19:24:22 UTC 2015


#32060: Add actions for add_role() and remove_role()
---------------------------------------------+-----------------------
 Reporter:  danielbachhuber                  |       Owner:  shooper
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  4.3
Component:  Role/Capability                  |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  good-first-bug has-patch commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by nacin):

 Consistency!

  * I was going to change `$this->id` to `$this`, but `set_user_role` uses
 `$this->id`.

  * I was going to change these to `added_user_role` and
 `removed_user_role`, but to match `set_user_role`, I'm going to go with
 `add_user_role` and `remove_user_role` instead.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32060#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list