[wp-trac] [WordPress Trac] #40030: Pass User and Comment Objects to rest_get_avatar_urls

WordPress Trac noreply at wordpress.org
Tue Jul 9 18:47:39 UTC 2019


#40030: Pass User and Comment Objects to rest_get_avatar_urls
----------------------------------------+-----------------------------
 Reporter:  dshanske                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  REST API                    |     Version:  4.7
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:
----------------------------------------+-----------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => needs-patch good-first-bug
 * version:  4.4 => 4.7


Comment:

 I think passing the full objects to `rest_get_avatar_urls()` is workable.
 Considering there aren’t any filters here and the function is really only
 a wrapper around `get_avatar_url`, I don’t think a separate function is
 necessary.

 @dshanske, @pputzer do either of you want to work on a patch for this?

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


More information about the wp-trac mailing list