[wp-trac] [WordPress Trac] #21195: get_avatar_url
WordPress Trac
noreply at wordpress.org
Mon Feb 18 12:08:01 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 cliffseal):
Replying to [comment:14 pathawks]:
> 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.
I wasn't aware this would happen. It doesn't occur in any of my tests and
seems unintuitive, but it's quite possible you know something I don't.
> 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.
True, but neither of those functions are pluggable, so I'm not sure if the
correlation should determine the method.
Regardless, sharing what worked for me here. I'll be pleased with whatever
the best solution is.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21195#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list