private $compat_methods = array
( '_fetch_with_format', '_parse_json', '_parse_xml', '_parse_xml_body'
);
/**
* Constructor.
*
* @since 2.9.0
*/
public function __construct() { $host =
urlencode( home_url() );
$providers = array
( '#https?://((m|www)\.)?youtube\.com/watch.*#i' => array
( 'https://www.youtube.com/oembed', true
),
'#https?://((m|www)\.)?youtube\.com/playlist.*#i' => array
( 'https://www.youtube.com/oembed', true
),
'#https?://((m|www)\.)?youtube\.com/shorts/*#i' => array
( 'https://www.youtube.com/oembed', true
),
'#https?://((m|www)\.)?youtube\.com/live/*#i' => array
( 'https://www.youtube.com/oembed', true
),
'#https?://youtu\.be/.*#i' => array
( 'https://www.youtube.com/oembed', true
),
'#https?://(.+\.)?vimeo\.com/.*#i' => array
( 'https://vimeo.com/api/oembed.{format}', true
),
'#https?://(www\.)?dailymotion\.com/.*#i' => array
( 'https://www.dailymotion.com/services/oembed', true
),
'#https?://dai\.ly/.*#i' => array
( 'https://www.dailymotion.com/services/oembed', true
),
'#https?://(www\.)?flickr\.com/.*#i' => array
( 'https://www.flickr.com/services/oembed/', true
),
'#https?://flic\.kr/.*#i' => array
( 'https://www.flickr.com/services/oembed/', true
),