[wp-trac] [WordPress Trac] #6246: get_avatar() should return the
Gravatar URL instead of a whole image tag
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 16 10:51:23 GMT 2008
#6246: get_avatar() should return the Gravatar URL instead of a whole image tag
-------------------------+--------------------------------------------------
Reporter: BoltClock | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.5
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
I notice that get_avatar() returns a complete image tag.
{{{
if ( !empty($email) ) {
// Some code...
$avatar = "<img alt='' src='{$out}' class='avatar
avatar-{$size}' height='{$size}' width='{$size}' />";
} else {
$avatar = "<img alt='' src='{$default}' />";
}
}}}
Even more peculiar is that in the else block, there is no CSS class for
the image tag. This makes it difficult for the Gravatar to be controlled
directly by CSS.
Is it possible to allow designers to pass another option to get_avatar()
telling it to just return the URL to the avatar instead?
--
Ticket URL: <http://trac.wordpress.org/ticket/6246>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list