[wp-trac] [WordPress Trac] #36961: wp_roles displays incorrect roles in multisite

WordPress Trac noreply at wordpress.org
Thu Aug 3 01:55:40 UTC 2017


#36961: wp_roles displays incorrect roles in multisite
--------------------------------------+------------------------
 Reporter:  ryanduff                  |       Owner:  flixos90
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  4.9
Component:  Role/Capability           |     Version:  4.2
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  multisite
--------------------------------------+------------------------
Changes (by flixos90):

 * keywords:  dev-feedback has-patch has-unit-tests => has-patch has-unit-
     tests


Comment:

 [attachment:36961.4.diff] only comes with a few minor changes, like
 updated version numbers and improved docs.

 In addition, [attachment:36961.5.diff] has one change that is based on the
 proposed improvements from #38645: With `WP_Roles` getting a `for_blog()`
 method, it would become unnecessary to call `switch_to_blog()` - the more
 granular `WP_Roles::for_blog()` would do the magic. Note that this patch
 will not work correctly at the moment unless you also apply the latest
 patch from #38645.

 Because of this dependency, let's wait with the merge until #38645 is in,
 although this one here is pretty much ready.

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


More information about the wp-trac mailing list