$attr =
wp_parse_args( $attr,
wp_embed_defaults( $url ) );
$this->last_attr =
$attr;
/*
* KSES converts & into & and we need to undo this.
* See https://core.trac.wordpress.org/ticket/11311
*/
$url =
str_replace( '&', '&',
$url );
// Look for known internal handlers.
$embed_handler_html =
$this->
get_embed_handler_html( $rawattr,
$url );
if ( false !==
$embed_handler_html ) { return $embed_handler_html;
} $post_id =
( !
empty( $post->ID
) ) ?
$post->ID : null;
// Potentially set by WP_Embed::cache_oembed().
if ( !
empty( $this->post_ID
) ) { $post_id =
$this->post_ID;
}