[wp-trac] [WordPress Trac] #64034: Media / Attachments REST API endpoint: Include post (i.e. attached parent) as an embeddable link in the response

WordPress Trac noreply at wordpress.org
Mon Oct 6 04:59:44 UTC 2025


#64034: Media / Attachments REST API endpoint: Include post (i.e. attached parent)
as an embeddable link in the response
--------------------------------------+---------------------------
 Reporter:  andrewserong              |       Owner:  andrewserong
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.9
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------

Comment (by andrewserong):

 Thanks @TimothyBlynJacobs, that's good to know! I think using a
 `api.w.org` URL likely makes the most sense as media attachment -> post
 isn't ''necessarily'' a hierarchical relationship in the way that, say,
 pages and page parents are. I'll put up a PR to try out
 https://api.w.org/post as the relation.

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


More information about the wp-trac mailing list