[buddypress-trac] [BuddyPress Trac] #6440: BP Displayed User Avatar Bug
buddypress-trac
noreply at wordpress.org
Mon May 18 12:31:11 UTC 2015
#6440: BP Displayed User Avatar Bug
-------------------------------+----------------------
Reporter: espellcaste | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: API - Avatars | Version: 2.2.3
Severity: critical | Resolution: invalid
Keywords: reporter-feedback |
-------------------------------+----------------------
Changes (by espellcaste):
* status: new => closed
* resolution: => invalid
* milestone: 2.3 =>
Comment:
Hi @imath, thanks for looking at it.
In fact, there isn't a bug. My reasoning was wrong and I'm afraid you are
correct.
I think I didn't quite understand the main purpose of the
{{{bp_core_fetch_avatar()}}} function and after you explanation, I fully
understood it.
Also after a few tests here, the {{{bp_core_fetch_avatar()}}} didn't
return an image until I changed the item_id to {{{bp_loggedin_user_id()}}}
which in this situation, should work as expected and as you explain in
your answer. Honestly, now I'm not sure how I got like I said, I think
after so many attempts of fixing it, I got confused and mistakenly said
that.
Overall, the function that I needed and was the one which solved the
problem was {{{bp_loggedin_user_avatar() }}}. As I wanna an user avatar, I
didn't look in the Members component in BuddyPress, I was straight to bp-
core-avatar.php.
Thanks anyway!
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6440#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list