[wp-trac] [WordPress Trac] #14708: Do not set role if it is the same
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 26 19:07:13 UTC 2010
#14708: Do not set role if it is the same
-----------------------------+----------------------------------------------
Reporter: nickmomrik | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 3.0.1
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
When set_role is called it doesn't check to see if the role is changing.
So we can update the user and fire the set_user_role action even when
nothing is changing.
To reproduce go to the Users screen and "change" the role of an
Administrator to an Administrator. Or use wp-admin/ms-sites.php to update
options. The user will be updated and the set_user_role action fires.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14708>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list