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

WordPress Trac noreply at wordpress.org
Sun Jan 11 03:08:57 UTC 2015


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

Comment (by jeremyfelt):

 Replying to [comment:65 nacin]:
 > I don't know — maybe we can get away with ditching it, deprecating it,
 and just using a new `wp_get_avatar()`, and anyone who is currently
 overriding `get_avatar()` just gets screwed and told they should have been
 using the filter.

 Would there be a `wp_get_avatar()` use in core where we wouldn't use
 `force_core_function` to override?

 Though... providing the check for the pluggable at least announces the
 deprecation, even if core itself skips it. This could help push developers
 to transition more than just moving to `wp_get_avatar()` and leaving
 behind a deprecation notice that may never fire.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21195#comment:66>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list