Make WordPress Core

Ticket #48696: 48696.diff

File 48696.diff, 1.9 KB (added by audrasjb, 6 years ago)

Remove CollegeHumor from embed provider since the service doesn’t exists anymore.

  • src/wp-includes/class-wp-oembed.php

    diff --git a/src/wp-includes/class-wp-oembed.php b/src/wp-includes/class-wp-oembed.php
    index b08a5c942e..26ca7173d4 100644
    a b class WP_oEmbed { 
    7878                        '#https?://(.+\.)?imgur\.com/.*#i'             => array( 'https://api.imgur.com/oembed', true ),
    7979                        '#https?://(www\.)?meetu(\.ps|p\.com)/.*#i'    => array( 'https://api.meetup.com/oembed', true ),
    8080                        '#https?://(www\.)?issuu\.com/.+/docs/.+#i'    => array( 'https://issuu.com/oembed_wp', true ),
    81                         '#https?://(www\.)?collegehumor\.com/video/.*#i' => array( 'https://www.collegehumor.com/oembed.{format}', true ),
    8281                        '#https?://(www\.)?mixcloud\.com/.*#i'         => array( 'https://www.mixcloud.com/oembed', true ),
    8382                        '#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'https://www.ted.com/services/v1/oembed.{format}', true ),
    8483                        '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'https://animoto.com/oembeds/create', true ),
    class WP_oEmbed { 
    164163                 * | Meetup.com   | meetu.ps                                  | 3.9.0   |
    165164                 * | Animoto      | animoto.com                               | 4.0.0   |
    166165                 * | Animoto      | video214.com                              | 4.0.0   |
    167                  * | CollegeHumor | collegehumor.com                          | 4.0.0   |
    168166                 * | Issuu        | issuu.com                                 | 4.0.0   |
    169167                 * | Mixcloud     | mixcloud.com                              | 4.0.0   |
    170168                 * | Crowdsignal  | poll.fm                                   | 4.0.0   |
    class WP_oEmbed { 
    211209                 * | Vine         | vine.co              | 4.1.0     | 4.9.0     |
    212210                 * | Photobucket  | photobucket.com      | 2.9.0     | 5.1.0     |
    213211                 * | Funny or Die | funnyordie.com       | 3.0.0     | 5.1.0     |
     212                 * | CollegeHumor | collegehumor.com     | 4.0.0     | 5.3.1     |
    214213                 *
    215214                 * @see wp_oembed_add_provider()
    216215                 *