[wp-trac] [WordPress Trac] #21195: get_avatar_url

WordPress Trac noreply at wordpress.org
Sun Feb 17 18:19:34 UTC 2013


#21195: get_avatar_url
-----------------------------+------------------------------
 Reporter:  pathawks         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  2.5
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by pathawks):

 Replying to [comment:13 cliffseal]:
 > I was working with this today, but went a little different route by
 adding an extra parameter to the `get_avatar` function allowing you to
 just return the URL.

 The biggest problem I see with this approach is that, because `get_avatar`
 is pluggable, some plugins replace the entire function.

 If `get_avatar` has been plugged with a version that does not support
 returning just the URL when given an extra paramater, it will break
 anything that relies on that behavior.

 Additionally, this seems inconsistent with how functions like
 `wp_get_attachment_image` and `wp_get_attachment_image_src` work, with one
 function returning the whole `<img>` tag and another returning just the
 URL.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21195#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list