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

WordPress Trac noreply at wordpress.org
Sun Mar 19 16:08:25 UTC 2017


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

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


Comment:

 [attachment:36961.3.diff] removes the `WP_User::__call()` implementation
 that was previously used to make `WP_User::_init_caps()` publicly
 accessible. Furthermore the latter has been deprecated since it does not
 make sense to exist, it's better structured to have its code in the
 `WP_User::for_blog()` method. This should not have any effect as one
 should not extend the `WP_User` class.

 If there are concerns regarding the removal of the `WP_User::__call()`
 implementation, let's discuss during the bug-scrub tomorrow.

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


More information about the wp-trac mailing list