[wp-trac] [WordPress Trac] #37773: Update get_avatar() to support native and registered image sizes.

WordPress Trac noreply at wordpress.org
Mon Aug 22 21:41:27 UTC 2016


#37773: Update get_avatar() to support native and registered image sizes.
--------------------------+-----------------------------
 Reporter:  jmichaelward  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The get_avatar() method currently allows developers to retrieve a user's
 avatar of a particular size by passing in an integer value, such as
 `get_avatar( 'jeremy at example.com', 80 )`.

 In some cases, it might be useful to instead retrieve an avatar by passing
 in an image size registered with WordPress (e.g., thumbnail, medium,
 large).

 See attached patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37773>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list