Opened 15 years ago
Closed 15 years ago
#12711 closed defect (bug) (fixed)
Author & Users shows all users on multisite
Reported by: | ocean90 | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | high |
Severity: | normal | Version: | |
Component: | Multisite | Keywords: | has-patch |
Focuses: | Cc: |
Description
On a multisite install go to a site backend and then to author&users, you should see all users of the network and not only the users of the current blog.
Also the delete function is broken, I think its because of the bug.
Attachments (4)
Change History (20)
#2
@
15 years ago
For multisite, users deleted from users.php have their role removed from the current blog. We should only list users that have a role on the current blog if is_multisite().
#3
@
15 years ago
Instead instead of being deleted, the *capabilities usermeta field for the user is being set to an empty string. WP_User_Search::prepare_query() fetches all users that have that field, whether it is empty or not.
#5
follow-up:
↓ 6
@
15 years ago
remove_user_from_blog() calls WP_User::remove_all_caps() which sets capabilities to an empty string. Maybe we should have it delete.
#7
@
15 years ago
- Keywords has-patch added
We should delete them, it fixes some other discrepancies on ms-sites.php. Patch added.
#8
@
15 years ago
delete_user_meta() should only take two arguments. The third is for the current meta value, to distinguish between multiple metadata rows of the same key for an item.
#10
@
15 years ago
Before closing this ticket can we verify the last change didn't affect WP single site installs.
#12
@
15 years ago
12711.4.patch should fix that. I tested it on single and ms installation, both works.
You can test it as super admin or as admin of the current site.