[wp-trac] [WordPress Trac] #38645: Improve roles reinit when switching between sites
WordPress Trac
noreply at wordpress.org
Mon Aug 7 17:21:56 UTC 2017
#38645: Improve roles reinit when switching between sites
--------------------------------------+------------------------
Reporter: johnjamesjacoby | Owner: flixos90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.9
Component: Role/Capability | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: multisite
--------------------------------------+------------------------
Comment (by flixos90):
Note that the latest patch on #36961 introduces `WP_User::for_site()`, in
favor of `WP_User::for_blog()`. If we make that change, the new method
here should be called `WP_Roles::for_site()` as well. The original
argument was to not introduce `for_site()` to maintain parity with
`WP_User`, so if `WP_User` is now modernized, we should be good. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38645#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list