[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 16:51:53 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
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => reporter-feedback


Comment:

 @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.

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


More information about the wp-trac mailing list