[buddypress-trac] [BuddyPress Trac] #5834: Notice while activating a member (with no role on any blogs) on a multisite config
buddypress-trac
noreply at wordpress.org
Sun Aug 24 09:50:15 UTC 2014
#5834: Notice while activating a member (with no role on any blogs) on a multisite
config
--------------------------+-----------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.1
Component: Blogs | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------
Multisite config with users & blogs registration opened
Steps to reproduce :
- register a dummy account by making sure you don't request a blog
- with a super admin account, go to the Manage Signups screen and activate
the member.
Notice error in {{{bp_blogs_add_user_to_blog()}}} using {{{array_keys()}}}
at line 862. I think as the member has no role on any blogs the check for
the user meta {{{$wpdb->get_blog_prefix( $blog_id ). 'capabilities'}}}
simply returns an empty string.
Casting this to an array is fixing the issue, see attached patch.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5834>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list