WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#12288 closed defect (bug) (fixed)

Use get_edit_post_link in edit-attachment-rows.php

Reported by: jfarthing84 Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch
Focuses: Cc:

Description

Just like the title says. Instead of hardcoding the edit link, use the get_edit_post_link function so that it can be filtered. It is already being used in one "Edit" link instance on the page, but not on the other. I will attach a patch.

Attachments (2)

edit-attachment-rows.diff (605 bytes) - added by jfarthing84 4 years ago.
edit-attachment-rows.2.diff (610 bytes) - added by jfarthing84 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 scribu4 years ago

  • Keywords needs-patch added; has-patch removed
  • Milestone changed from Unassigned to 3.0

That should be echo get_edit_post_link(...

comment:2 jfarthing844 years ago

  • Keywords has-patch added; needs-patch removed

Oops. Good catch. Corrected version added.

comment:3 nacin4 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.