[buddypress-trac] [BuddyPress Trac] #8177: Admin Issue : Trying to get property ‘show_avatars’ of non-object
buddypress-trac
noreply at wordpress.org
Sat Jan 25 06:18:08 UTC 2020
#8177: Admin Issue : Trying to get property ‘show_avatars’ of non-object
---------------------------------------------+---------------------
Reporter: mangeshnadekar | Owner: imath
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0.0
Component: Core | Version: 5.0.0
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit |
---------------------------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"12536" 12536]:
{{{
#!CommitTicketReference repository="" revision="12536"
Prevent errors when `get_avatar()` is used before BP Globals are set
In this case we need to make sure the `buddypress()->avatar` object is set
before checking its `show_avatars` property into the function used to
filter `get_avatar()`.
Props shanebp
Fixes #8177
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8177#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list