[wp-trac] [WordPress Trac] #44620: Attachment Details modal shouldn't manually construct the edit link

WordPress Trac noreply at wordpress.org
Sat Jul 21 02:59:15 UTC 2018


#44620: Attachment Details modal shouldn't manually construct the edit link
--------------------------+-------------------------
 Reporter:  johnbillion   |      Owner:  johnbillion
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  4.9.9
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 In the template for the Attachment Details modal, the URL of the `Edit
 more details` link is manually constructed using `post.php?post={{ data.id
 }}&action=edit`.

 This means the URL may not be correct if the actual attachment editing URL
 is filtered and changed. The template should use `{{ data.editLink }}`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44620>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list