[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
Tue Aug 26 20:53:24 UTC 2014
#5834: Notice while activating a member (with no role on any blogs) on a multisite
config
------------------------------+---------------------
Reporter: imath | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 2.1
Component: Blogs | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit |
------------------------------+---------------------
Changes (by imath):
* owner: => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"8965"]:
{{{
#!CommitTicketReference repository="" revision="8965"
In {{{bp_blogs_add_user_to_blog
()}}} function make sure getting user roles returns an array
On multisite configs, when a member registers, he is not assigned to any
blog and has no role.
When activating the user from the Manage signups screen, getting his role
in {{{bp_blogs_add_user_to_blog()}}} was returning an empty string causing
a notice error when trying to get the keys of the "capabilities" usermeta.
To avoid this, we now make sure this usermeta is an array.
Fixes #5834
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5834#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list