[wp-trac] [WordPress Trac] #28507: Secure oEmbeds
WordPress Trac
noreply at wordpress.org
Tue Mar 10 15:32:27 UTC 2015
#28507: Secure oEmbeds
----------------------------+-----------------------------
Reporter: johnbillion | Owner: johnbillion
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: Future Release
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+-----------------------------
Comment (by GunGeekATX):
I believe Instagram is forcing everything to HTTPS now. I tested it out
by adding a provider:
{{{
add_filter( 'oembed_providers', 'pn_test_instagram_oembed' );
function pn_test_instagram_oembed( $providers ) {
$providers ['#https://instagr(\.am|am\.com)/p/.*#i'] = array(
'https://api.instagram.com/oembed', true );
return $providers;
}
}}}
Appears to be working: https://petenelson.com/instagram-https-embed-test/
https://api.instagram.com/oembed?url=https://instagram.com/p/0DU6jJIvyw/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28507#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list