Commit 9e790437 authored by lechuck's avatar lechuck Committed by lucha

Added support for https to oembed providers

parent b51e8304
......@@ -199,15 +199,15 @@ return apply_filters( 'embed_ogm', $embed, $matches, $attr, $url, $rawattr );
function register_embed_handlers() {
wp_embed_register_handler( 'stream', '#stream:.*#i', 'wp_embed_handler_stream' );
wp_embed_register_handler( 'mp3', '#http://.*?/.*?mp3#i', 'wp_embed_handler_mp3' );
wp_embed_register_handler( 'ogm', '#http://.*?/.*?ogm#i', 'wp_embed_handler_ogm' );
wp_embed_register_handler( 'archive', '#http://(.+\.)?archive.org/.*/.*\.(mp4|wmv|mov|mp3|ogv)#i', 'wp_embed_handler_archive' );
wp_embed_register_handler( 'umapper', '#http://umapper.s3.amazonaws.com/.*?\.kml#i', 'wp_embed_handler_umapper' );
wp_embed_register_handler( 'mp3', '#http(s)?://.*?/.*?mp3#i', 'wp_embed_handler_mp3' );
wp_embed_register_handler( 'ogm', '#http(s)?://.*?/.*?ogm#i', 'wp_embed_handler_ogm' );
wp_embed_register_handler( 'archive', '#http(s)?://(.+\.)?archive.org/.*/.*\.(mp4|wmv|mov|mp3|ogv)#i', 'wp_embed_handler_archive' );
wp_embed_register_handler( 'umapper', '#http(s)?://umapper.s3.amazonaws.com/.*?\.kml#i', 'wp_embed_handler_umapper' );
// wp_embed_register_handler( 'youtube', '#http://(www\.)?youtube\.com/v/.*?#i', 'wp_embed_handler_youtube' );
wp_embed_register_handler( 'jamendo', '#http://www\.jamendo\.com/.*/(album|track)/(.*)#i', 'wp_embed_handler_jamendo' );
wp_embed_register_handler( 'dctptv', '#http://www.dctp.tv/embed/.*?/#i', 'wp_embed_handler_dctptv' );
wp_embed_register_handler( 'jamendo', '#http(s)?://www\.jamendo\.com/.*/(album|track)/(.*)#i', 'wp_embed_handler_jamendo' );
wp_embed_register_handler( 'dctptv', '#http(s)?://www.dctp.tv/embed/.*?/#i', 'wp_embed_handler_dctptv' );
wp_embed_register_handler( 'googlemaps', '#http(s)?://maps\.google\.[^\.]+/(.*)#i', 'wp_embed_handler_google_maps');
wp_embed_register_handler( 'openstreetmap', '#http://www\.openstreetmap\.org/export/embed.html\?(.*)#i', 'wp_embed_handler_openstreetmap');
wp_embed_register_handler( 'openstreetmap', '#http(s)?://www\.openstreetmap\.org/export/embed.html\?(.*)#i', 'wp_embed_handler_openstreetmap');
}
add_action('wp', 'register_embed_handlers');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment