[wp-trac] [WordPress Trac] #36196: Users without a role are not being displayed
WordPress Trac
noreply at wordpress.org
Fri Mar 11 14:29:04 UTC 2016
#36196: Users without a role are not being displayed
-------------------------------+------------------------------
Reporter: tobi823 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.4.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: multisite
-------------------------------+------------------------------
Comment (by tobi823):
Thank you for your fast responde @johnbillion,
I have removed the roles of my user testuser31098 (ID 34) by accessing my
site 'unterseite3' with the ID 4 and execute this PHP script.
{{{#!php
add_action('wp_after_admin_bar_render', 'aaaaa');
function aaaaa() {
/* @var WP_User $wpUser */
$wpUser = get_user_by('id', 34);
if (get_current_blog_id() === 4) {
$wpUser->set_role('');
echo 'delete roles of user 34';
var_dump($wpUser);
}
}
}}}
The user is still invisible in the site 'unterseite3' and visible in the
network user manager. But the user testuser31098 thinks that he belongs to
'unterseite3' although he has no role in 'unterseite3'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36196#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list