#4215 closed enhancement (fixed)
bp_core_fetch_avatar html pref checking should use !empty
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.6.1 | Priority: | normal |
Severity: | critical | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: | magnus.melin@… |
Description
When bp_core_fetch_avatar checks the html pref it checks it using true === $html. This makes it harder then necessary to override (e.g. passing $html=0 won't work). I propose to use !empty instead.
Attachments (1)
Change History (11)
#1
@
13 years ago
- Milestone changed from Awaiting Review to 1.6
- Priority changed from normal to low
- Type changed from defect (bug) to enhancement
Agreed. This makes it unnecessarily hard to pass arguments in a URL style (...&html=1&...)
#3
@
13 years ago
- Milestone changed from 1.6 to 1.6.1
- Priority changed from low to normal
- Severity changed from normal to critical
This change in 1.6 has broken, amongst other things, the Salutation theme. Many forum posts:
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/bp_core_fetch_avatar-issue-after-1-6-update/
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/after-update-to-1-6-profilimagebug/
http://buddypress.org/community/groups/installing-buddypress/forum/topic/what-happened-to-our-avatars/
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/weird-characters-showing-instead-of-avatar-picture-on-top-bar-after-installing-1-6-update/
#7
@
13 years ago
(In [6246]) Do a strict type check for 'html' parameter in bp_core_fetch_avatar()
In r6046, the type check was loosened, to make it somewhat easier for themers
to pass a false value for 'html'. However, it was found after the 1.6 release
that this change broke backward compatibility with certain ways of calling
bp_core_fetch_avatar(). See #4215 for info on the original change.
Fixes #6046
Props rogercoathup
#8
@
13 years ago
(In [6247]) Do a strict type check for 'html' parameter in bp_core_fetch_avatar()
In r6046, the type check was loosened, to make it somewhat easier for themers
to pass a false value for 'html'. However, it was found after the 1.6 release
that this change broke backward compatibility with certain ways of calling
bp_core_fetch_avatar(). See #4215 for info on the original change.
Fixes #6046
Props rogercoathup
proposed fix