mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 15:14:37 +00:00
youtube.com oEmbed test should always expect HTTPS.
YouTube recently changed its oEmbed endpoint so that the iframe markup always contains an HTTPS URL, regardless of the scheme of the video URL originally requested. This changeset fixes the corresponding unit test. Fixes #32260. git-svn-id: https://develop.svn.wordpress.org/trunk@32358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -123,7 +123,7 @@ CAP;
|
||||
global $wp_embed;
|
||||
|
||||
$out = wp_oembed_get( 'http://www.youtube.com/watch?v=oHg5SJYRHA0' );
|
||||
$this->assertContains( 'http://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );
|
||||
$this->assertContains( 'https://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );
|
||||
|
||||
$out = wp_oembed_get( 'https://www.youtube.com/watch?v=oHg5SJYRHA0' );
|
||||
$this->assertContains( 'https://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );
|
||||
|
||||
Reference in New Issue
Block a user