[wp-trac] [WordPress Trac] #19539: get_avatar() returning wrong image size which inserts large image in admin bar

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 13 23:30:38 UTC 2011


#19539: get_avatar() returning wrong image size which inserts large image in admin
bar
--------------------------+-----------------------------
 Reporter:  andrewryno    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.3
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 Just updated a site to 3.3 and noticed that when you open the "Howdy,
 {user}" admin bar menu, the image sometimes is larger than the 64px image
 requested by get_avatar() (/wp-includes/admin-bar.php line 174). It
 instead is showing a 156x156 image.

 I don't know if this is a bug in get_avatar() or what. But get_avatar()
 DOES output the correct HTML with width and height set to 6 and the ?s=64
 query string added to the URL. However, the reset for the admin bar
 (#wpadminbar *) sets width/height to auto, so those HTML attributes are
 ignored.

 Wrote a patch to resize it using CSS, but I don't know if it's a bug in
 get_avatar() that might need to be addressed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19539>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list