[wp-trac] [WordPress Trac] #44750: Attributes unexpectedly lost in attachment links

WordPress Trac noreply at wordpress.org
Mon Oct 8 14:36:46 UTC 2018


#44750: Attributes unexpectedly lost in attachment links
--------------------------------------+-----------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  5.0
Component:  REST API                  |     Version:  4.9.8
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 I think that might be the byproduct of the fix. When I used `get_links()`
 it had the attributes nested in that format, but fixing it to do it
 iteratively means we don't have the `attributes` listed for links with no
 extra attributes. Looking at other mocked API responses in that file, it
 looks to be the intended format.

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


More information about the wp-trac mailing list