Skip to:
Content

BuddyPress.org

Changeset 12894


Ignore:
Timestamp:
04/19/2021 05:05:54 AM (4 years ago)
Author:
imath
Message:

Use the parsed extra_attr parameter in bp_core_fetch_avatar()

This makes sure passing the extra_attr inside a string of arguments is taken in account into the generated HTML output of the avatar.

Props oztaser

Fixes #8077

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-avatars.php

    r12588 r12894  
    363363
    364364    // Extra attributes.
    365     $extra_attr = ! empty( $args['extra_attr'] ) ? ' ' . $args['extra_attr'] : '';
     365    $extra_attr = '';
     366    if ( ! empty( $params['extra_attr'] ) ) {
     367        $extra_attr = ' ' . $params['extra_attr'];
     368    }
    366369
    367370    // Set CSS ID and create html string.
Note: See TracChangeset for help on using the changeset viewer.