WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7425 closed enhancement (fixed)

Use API internally for post/page/media edit links

Reported by: mdawaffe Owned by: mdawaffe
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.6
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Plugins adding new types of post types or adding specific functionality for specific media mime types may need more flexibility than simply adding form fields to a post's, page's or media item's edit screen. These plugins may need to offer completely new edit screens for their specialized data.

WordPress currently has post, page, and media item edit links hardcoded rather than using the filterable get_edit_post_link() function.

The attached converts all the hardcoded links to links created with get_edit_post_link().

Attachments (1)

7425.diff (11.7 KB) - added by mdawaffe 7 years ago.

Download all attachments as: .zip

Change History (3)

@mdawaffe7 years ago

comment:1 @mdawaffe7 years ago

  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

comment:2 @ryan7 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [8484]) Use get_edit_post_link() instead of hardcoding edit links. Props mdawaffe. fixes #7425

Note: See TracTickets for help on using tickets.