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

WordPress Trac noreply at wordpress.org
Sun Jul 14 14:34:11 UTC 2019


#40030: Pass User and Comment Objects to rest_get_avatar_urls
--------------------------------------+-----------------------------
 Reporter:  dshanske                  |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45632" 45632]:
 {{{
 #!CommitTicketReference repository="" revision="45632"
 REST API: Allow `rest_get_avatar_urls()` to accept full user, post, or
 comment objects, rather than just an email address, to provide better
 flexibility for alternative avatar data.

 Since the function uses `get_avatar_url()` internally, which already
 supports it, this should not have any backward compatibility concerns.

 Props donmhico, dshanske, pputzer, joehoyle, TimothyBlynJacobs.
 Fixes #40030.
 }}}

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


More information about the wp-trac mailing list