Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#20891 closed enhancement (fixed)

admin_post_thumbnail_html filter should receive the post ID

Reported by: helenyhou Owned by: markjaquith
Priority: normal Milestone: 3.5
Component: Post Thumbnails Version: 3.4
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

The admin_post_thumbnail_html filter isn't as useful when called via ajax without some context, e.g. changing the Set/Remove text based on a post type. Now that _wp_post_thumbnail_html can receive the $post_id, the filter should as well.

Related: #20003

Attachments (1)

20891.diff (414 bytes ) - added by helenyhou 14 years ago.

Download all attachments as: .zip

Change History (3)

@helenyhou
14 years ago

#1 @markjaquith
14 years ago

  • Owner set to markjaquith
  • Resolutionfixed
  • Status newclosed

In [21173]:

Pass the post ID to the admin_post_thumbnail_html filter. props helenyhou. fixes #20891

#2 @helenyhou
14 years ago

  • Milestone Awaiting Review3.5
Note: See TracTickets for help on using tickets.