Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#27336 closed enhancement (duplicate)

Pass a custom CSS class to get_avatar

Reported by: henrywright's profile henry.wright Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: General Keywords:
Focuses: Cc:


Is there any chance the usage of get_avatar could be modified so that a custom CSS class can be passed? For example:

get_avatar( $id_or_email, $size, $default, $alt, $class );

Change History (6)

#2 @cliffseal
10 years ago

This would be solved, essentially, by getting #21195 committed, yes?

#3 @SergeyBiryukov
10 years ago

Yes, the patch there includes the ability to pass a custom class.

#4 @henry.wright
10 years ago

SergeyBiryukov, your knowledge of open tickets is unparalleled :)

#5 @wonderboymusic
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#21195 is marked for 4.1 and is the more comprehensive solution

#6 @SergeyBiryukov
9 years ago

#30639 was marked as a duplicate.

Note: See TracTickets for help on using tickets.