[wp-trac] [WordPress Trac] #52321: Add site icon to rest index

WordPress Trac noreply at wordpress.org
Thu Nov 4 23:58:32 UTC 2021


#52321: Add site icon to rest index
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.9
Component:  REST API                             |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests needs-refresh                            |
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 Let's update the patch to change this line

 {{{#!php
  rest_url( 'wp/v2/media/' . $site_icon_id )
 }}}

 to
 {{{#!php
   rest_url( rest_get_route_for_post( $site_icon_id ) )
 }}}

 See this commit for [https://github.com/WordPress/wordpress-
 develop/commit/bb6c5dbb8d613cb450d3f73983ecca27a75b003b#diff-
 54672f9c4558df260b84af408b05a98d9f22319994615b95daca757784a5be22R1291
 details].

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


More information about the wp-trac mailing list