Skip to:
Content

BuddyPress.org

Changeset 13268


Ignore:
Timestamp:
04/07/2022 01:32:28 AM (4 years ago)
Author:
imath
Message:

Make sure bp_get_group_avatar_url() returns the group avatar raw URL

In r13085 a regression was introduced making this function wrongly return
the avatar <img> html output instead of the avatar raw URL. As the
html attribute of the bp_get_group_avatar() defaults to true we need
to set it to false when using this function from
bp_get_group_avatar_url().

Props mackey1, shanebp

Fixes #8678 (branch 10.0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/10.0/src/bp-groups/bp-groups-template.php

    r13193 r13268  
    10381038         */
    10391039        function bp_get_group_avatar_url( $group = false, $type = 'full' ) {
    1040                 return bp_get_group_avatar( array( 'type' => $type ), $group );
     1040                return bp_get_group_avatar(
     1041                        array(
     1042                                'type' => $type,
     1043                                'html' => false,
     1044                        ),
     1045                        $group
     1046                );
    10411047        }
    10421048
Note: See TracChangeset for help on using the changeset viewer.