[buddypress-trac] [BuddyPress Trac] #5334: Getting warning "Creating default object from empty value when enabling extended profiles"
buddypress-trac
noreply at wordpress.org
Sat Mar 8 12:33:19 UTC 2014
#5334: Getting warning "Creating default object from empty value when enabling
extended profiles"
--------------------------+---------------------------
Reporter: clamoreaux | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: low | Milestone: 2.0
Component: XProfile | Version: 1.9.1
Severity: minor | Resolution: fixed
Keywords: needs-patch |
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"8082"]:
{{{
#!CommitTicketReference repository="" revision="8082"
Improve behavior or bp_member_profile_data() when used outside of members
loop
Our documentation suggests the use of bp_member_profile_data() to pull up
miscellaneous pieces of user profile data anywhere in a template.
Technically,
this works, but the internals of the function made a few assumptions that
it
would only be used in the context of a bp_has_members() loop. This would
result
in needless PHP notices when using the function outside of a loop context.
This changeset introduces checks to ensure that the $members_template
global
is only manipulated if it exists, making the function safe to use
anywhere.
Fixes #5334
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5334#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list