Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#20891 closed enhancement (fixed)

admin_post_thumbnail_html filter should receive the post ID

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


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 12 years ago.

Download all attachments as: .zip

Change History (3)

12 years ago

#1 @markjaquith
12 years ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In [21173]:

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

#2 @helenyhou
12 years ago

  • Milestone changed from Awaiting Review to 3.5
Note: See TracTickets for help on using tickets.