Opened 10 years ago
Last modified 8 years ago
#5717 new defect (bug)
Default thumb avatar is not used when called via (any function that utilizes) bp_core_fetch_avatar()
Reported by: | M-BP | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Contributions | Priority: | normal |
Severity: | normal | Version: | 1.2 |
Component: | Core | Keywords: | needs-patch |
Cc: |
Description
The default thumb avatar (myster-man-50.jpg) is not used when avatars are called via any function that utilizes bp_core_fetch_avatar().
This is presumably due to the fact that on l. 468 in bp-core-avatars.php only bp_core_avatar_default() is called. This can lead to layout distortions (for example in the members loop) as well as makes it impossible to overwrite the default thumb avatar (see a related issue that someone posted in the forums http://buddypress.org/support/topic/bp_avatar_default_thumb-broken/).
Maybe $params could be checked and the function would just default to the thumb for the sake of consistency?
Change History (8)
#4
@
10 years ago
Sure, you will notice it everywhere where the default thumbnail is called (for me this is for example the case in the members-loop where type=thumb is requested). Else you will also always see this behaviour when using bp_core_fetch_avatar() or any other function that calls bp_core_fetch_avatar() without the type specified (you might have to turn off gravatars since this issue affects the default thumb that ships with bp, the myster-man).
When you then inspect the thumbnail <img> in your browser, you will notice that always the full version is loaded even if you specified type=thumb when calling bp_core_fetch_avatar().
What do you think of this (from l. 466 onwards)?
I've made some tests and it seems to work but maybe it can be improved.