[wp-trac] [WordPress Trac] #53231: wp_get_current_user() doesn't return roles and capabilities on a multisite
WordPress Trac
noreply at wordpress.org
Wed May 19 18:31:11 UTC 2021
#53231: wp_get_current_user() doesn't return roles and capabilities on a multisite
-------------------------------+------------------------------
Reporter: moon0326 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: multisite
-------------------------------+------------------------------
Comment (by moon0326):
dReplying to [comment:2 johnbillion]:
> @moon0326 Does the Super Admin user have a role on the new site that you
added? If not, this is expected behaviour. A Super Admin can perform any
action on any site on the network, but they won't have a role or any
capabilities on the site unless they're added to that site.
Thank you for the clarification. That makes sense.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53231#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list