WordPress.org

Make WordPress Core

Opened 23 months ago

Closed 22 months ago

Last modified 22 months ago

#20891 closed enhancement (fixed)

admin_post_thumbnail_html filter should receive the post ID

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

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 23 months ago.

Download all attachments as: .zip

Change History (3)

helenyhou23 months ago

comment:1 markjaquith22 months 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

comment:2 helenyhou22 months ago

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