#9147 closed defect (bug) (fixed)
AtomPub return incorrect "edit" link
| Reported by: | tarmes | Owned by: | josephscott |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7.2 |
| Component: | AtomPub | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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 (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.