[wp-trac] [WordPress Trac] #22636: Add a filter for post_thumbnail_meta_box HTML
WordPress Trac
noreply at wordpress.org
Thu Nov 29 17:36:22 UTC 2012
#22636: Add a filter for post_thumbnail_meta_box HTML
-----------------------------+-----------------------------
Reporter: coreygilmore | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Post Thumbnails
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+-----------------------------
It's been helpful to add additional HTML to the post thumbnail meta box,
but without any hooks in [source:/trunk/wp-admin/includes/meta-
boxes.php at 22924#L1003 post_thumbnail_meta_box] the process is very
fragile, and and requires the use of Javascript, or removing the
postimagediv meta box and adding your own meta box.
[source:/trunk/wp-admin/includes/post.php at 22924#L1115
_wp_post_thumbnail_html] provides a way to filter the HTML, but function
is only used for ajax requests.
The attached patch adds a filter to $thumbnail_html in
post_thumbnail_meta_box, allowing for some parity.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22636>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list