[wp-trac] [WordPress Trac] #17924: Make Integrating Multiple Roles Per User Easier for Plugin Authors

WordPress Trac noreply at wordpress.org
Wed Apr 15 19:44:29 UTC 2015


#17924: Make Integrating Multiple Roles Per User Easier for Plugin Authors
-----------------------------------+------------------------------
 Reporter:  mobius5150             |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Role/Capability        |     Version:  2.0
 Severity:  major                  |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------
Changes (by johnjamesjacoby):

 * keywords:  has-patch => has-patch 2nd-opinion
 * version:  3.2 => 2.0
 * type:  enhancement => defect (bug)
 * severity:  normal => major
 * milestone:  Future Release => Awaiting Review


Comment:

 At the risk of abusing some power, I'm updating a few ticket properties to
 draw some attention:

 I'm afraid years worth of patches have over complicated the iterative
 solution to a problem that runs deep within the `WP_Roles` API.
 [https://core.trac.wordpress.org/attachment/ticket/17924/17924.07.patch
 17924.07.patch] is the minimum requirement to avoiding plugin breakage
 (see: #BB2597 for more.)

 The problem is `set_role()` – it's a nuclear approach reserved for setting
 or preserving the default role of a given site. Any other user role
 adjustment should be sensitive to the fact that any user can have any
 combination of roles or capabilities outside of the "blog" portion of a
 site.

 See also #23016.

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


More information about the wp-trac mailing list