[buddypress-trac] [BuddyPress Trac] #6749: bp_get_group_avatar() needs extra error checking

buddypress-trac noreply at wordpress.org
Sun Nov 22 10:42:09 UTC 2015


#6749: bp_get_group_avatar() needs extra error checking
--------------------------------------+-----------------------------
 Reporter:  slaFFik                   |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  Tools - Warnings/Notices  |    Version:
 Severity:  normal                    |   Keywords:
--------------------------------------+-----------------------------
 Currently `bp_get_group_avatar()` function doesn't check
 `$groups_template` global var, although using it extensively.
 If you try to use this function not in a loop scope - it will generate
 lots of notices.

 It makes it impossible to use outside of the loop more relevant
 `bp_get_group_avatar()` comparing to `bp_core_fetch_avatar()`.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6749>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list