WordPress.org

Make WordPress Core

Changeset 32365


Ignore:
Timestamp:
05/06/2015 03:17:46 AM (7 years ago)
Author:
pento
Message:

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.

Props boonebgorges.

Fixes #32260.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/tests/phpunit/tests/media.php

    r32171 r32365  
    124124
    125125        $out = wp_oembed_get( 'http://www.youtube.com/watch?v=oHg5SJYRHA0' );
    126         $this->assertContains( 'http://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );
     126        $this->assertContains( 'https://www.youtube.com/embed/oHg5SJYRHA0?feature=oembed', $out );
    127127
    128128        $out = wp_oembed_get( 'https://www.youtube.com/watch?v=oHg5SJYRHA0' );
Note: See TracChangeset for help on using the changeset viewer.