Opened 11 years ago
Closed 11 years ago
#36443 closed enhancement (fixed)
admin_post_thumbnail_html filter should receive the thumbnail ID
| Reported by: | johnjamesjacoby | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Post Thumbnails | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The admin_post_thumbnail_html filter isn't as useful (when called via ajax, or otherwise) without context, e.g. changing the Set/Remove text based on whether a thumbnail is even set. Since _wp_post_thumbnail_html has always required a $thumbnail_id, the admin_post_thumbnail_html filter probably should as well.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Add
$thumbnail_idtoadmin_post_thumbnail_htmlfilter