[buddypress-trac] [BuddyPress Trac] #2152: no way to retrieve group avatar from ID

buddypress-trac noreply at wordpress.org
Tue Jan 27 23:38:25 UTC 2015


#2152: no way to retrieve group avatar from ID
-------------------------+------------------------
 Reporter:  mikepratt    |       Owner:  calvin_42
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  2.3
Component:  Groups       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------
Changes (by johnjamesjacoby):

 * status:  closed => reopened
 * resolution:  wontfix =>
 * milestone:  1.5 => 2.3


Comment:

 Back from the dead, I'd like to propose we enhance `bp_get_group_avatar()`
 in a few different ways:

 * Allow it to work on the Group Creation screen.
 * Provide sane defaults in the event it's called outside a group loop.

 These two small tweaks eliminate the need to guess at whether to use
 `bp_core_fetch_avatar()` or `bp_get_group_avatar()` for the group creation
 screen, and allow `bp_get_group_avatar()` to always put out some image,
 rather than create PHP notices or exit early.

 Patch imminent.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/2152#comment:11>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list