[wp-trac] [WordPress Trac] #9147: AtomPub return incorrect "edit" link

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 16 19:00:09 GMT 2009

#9147: AtomPub return incorrect "edit" link
 Reporter:  tarmes        |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.2    
Component:  General       |     Version:  2.7      
 Severity:  normal        |    Keywords:           
 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

Ticket URL: <https://core.trac.wordpress.org/ticket/9147>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list