[wp-trac] [WordPress Trac] #15491: embed_oembed_html filter needs post ID
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 19 15:51:55 UTC 2010
#15491: embed_oembed_html filter needs post ID
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Media | Version: 3.1
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
If you want to use the `embed_oembed_html` filter in the context of a
particular post, currently you have to hope that the global request
variable stars align in your favor. That is, you have to hope that the
shortcode callback---in which the filter is used---is being called in the
admin when `$_GET['post']` is defined. Because it's a shortcode callback,
that's not something you can have great confidence in.
Patch passes the post ID to the filter.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15491>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list