Pass post ID to embed_oembed_html filter to avoid global variable incantations. props filosofo. fixes #15491

git-svn-id: http://svn.automattic.com/wordpress/trunk@16740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2010-12-06 03:38:27 +00:00
parent 7b83e5082e
commit 7290e527e7
1 changed files with 2 additions and 2 deletions

View File

@ -1190,7 +1190,7 @@ class WP_Embed {
return $this->maybe_make_link( $url );
if ( !empty($cache) )
return apply_filters( 'embed_oembed_html', $cache, $url, $attr );
return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID );
}
// Use oEmbed to get the HTML
@ -1203,7 +1203,7 @@ class WP_Embed {
// If there was a result, return it
if ( $html )
return apply_filters( 'embed_oembed_html', $html, $url, $attr );
return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
}
// Still unknown