Ticket #9147 (closed defect (bug): fixed)
AtomPub return incorrect "edit" link
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | AtomPub | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | joseph@… |
Description
The 'edit' URL returned by Wordpress when uploading *images* is incorrect. POSTing the image will return something like this:
<link rel="edit-media"
href=" http://www.myblog.com/blog/wp-app.php/attachment/file/491" />
<link rel="edit" href=" http://www. myblog.com/blog/wp-app.php/post/491" />
The edit media URL is correct, however if I do a GET of the edit URL, to retrieve the metadata, the result is empty. After looking at the source I realised that it should have been returning this:
<link rel="edit" href=" http://www. myblog.com/blog/wp-app.php/attachment/491" />
With this URL the GET works
Attachments
Change History
comment:1
josephscott — 3 years ago
- Cc joseph@… added
- Keywords has-patch added
- Owner changed from anonymous to josephscott
Added a patch to make sure that media files reference /wp-app.php/attachment/XXXX instead of /wp-app.php/post/XXXX that fixes it both for the media collection listing and the individual entry listing.
- Status changed from new to closed
- Resolution set to fixed

