Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 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:

Description

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 );

https://codex.wordpress.org/Function_Reference/get_avatar

Change History (6)

#2 @cliffseal
11 years ago

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

#3 @SergeyBiryukov
11 years ago

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

#4 @henry.wright
11 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
10 years ago

#30639 was marked as a duplicate.

Note: See TracTickets for help on using tickets.