Ticket #15491: pass-post-id-to-embed-filter.15491.diff
| File pass-post-id-to-embed-filter.15491.diff, 731 bytes (added by , 15 years ago) |
|---|
-
wp-includes/media.php
1186 1186 return $this->maybe_make_link( $url ); 1187 1187 1188 1188 if ( !empty($cache) ) 1189 return apply_filters( 'embed_oembed_html', $cache, $url, $attr );1189 return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID ); 1190 1190 } 1191 1191 1192 1192 // Use oEmbed to get the HTML … … 1199 1199 1200 1200 // If there was a result, return it 1201 1201 if ( $html ) 1202 return apply_filters( 'embed_oembed_html', $html, $url, $attr );1202 return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID ); 1203 1203 } 1204 1204 1205 1205 // Still unknown