is_blog_user() bug on Multisite
|Reported by:||MattyRob||Owned by:||ryan|
I've just installed a fresh WordPress 3.1 with Multisite enable and configured and there seems to be a glitch in is_blog_user().
It looks for a capability with a key name of the site prefix . blog_id . _capabilties.
But, the first installed blog on an MU site is installed without the blog_id in the key name.
On my test site for example I have a the main site WPMU and 2 sub site Test1 and Test2.
In the usermeta table there are capability keynames as follows:
wpmu_capabilities (relating the my WPMU site)
wpmu_1_capabilities (relating to Test1)
wpmu_2_capabilities (relating to Test2)
So, is_blog_user() returns false for all users of WPMU as the function is looking for the wrong key name.
Change History (27)
- Keywords needs-refresh removed
- Milestone changed from Awaiting Review to 3.3
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed