[buddypress-trac] [BuddyPress Trac] #6069: bp_core_fetch_avatar() no longer allows multiple classes to be passed to it
buddypress-trac
noreply at wordpress.org
Mon Dec 15 18:37:11 UTC 2014
#6069: bp_core_fetch_avatar() no longer allows multiple classes to be passed to it
--------------------------+-----------------------------
Reporter: needle | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Avatars | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
Because BP trunk uses `sanitize_html_class( $params['class'] )`, avatars
can no longer be created with multiple classes. It used to be the case
that one could define `$avatar_options = array ( 'class' => 'first_class
second_class' )`, but `sanitize_html_class()` concatenates these into a
single string, i.e. 'first_classsecond_class'. There's no workaround of
passing an array.
Not sure if this is a bug or by design, so leaving Type = bug.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6069>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list