Make WordPress Core

Changeset 41347


Ignore:
Timestamp:
09/08/2017 03:00:33 PM (7 years ago)
Author:
johnbillion
Message:

Embeds: Remove support for oEmbedded videos from Vine.

  • Vine effectively shut down in December 2016.
  • The oEmbed endpoint no longer works and returns a 404.
  • Developer documentation for Vine has been removed.

Fixes #41817

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-press-this.php

    r41219 r41347  
    460460     *
    461461     * Not all core oEmbed providers are supported. Supported providers include YouTube, Vimeo,
    462      * Vine, Daily Motion, SoundCloud, and Twitter.
     462     * Daily Motion, SoundCloud, and Twitter.
    463463     *
    464464     * @ignore
     
    483483            // Embedded Vimeo Flash videos
    484484            $src = 'https://vimeo.com/' . (int) $src_matches[1];
    485         } else if ( preg_match( '!//vine\.co/v/([^/]+)/embed!i', $src, $src_matches ) ) {
    486             // Embedded Vine videos
    487             $src = 'https://vine.co/v/' . $src_matches[1];
    488485        } else if ( preg_match( '!//(www\.)?dailymotion\.com/embed/video/([^/?]+)([/?].+)?!i', $src, $src_matches ) ) {
    489486            // Embedded Daily Motion videos
  • trunk/src/wp-includes/class-oembed.php

    r41345 r41347  
    7575            '#https?://(www\.)?twitter\.com/\w{1,15}/timelines/.*#i'   => array( 'https://publish.twitter.com/oembed',                        true  ),
    7676            '#https?://(www\.)?twitter\.com/i/moments/.*#i'            => array( 'https://publish.twitter.com/oembed',                        true  ),
    77             '#https?://vine\.co/v/.*#i'                                => array( 'https://vine.co/oembed.{format}',                           true  ),
    7877            '#https?://(www\.)?soundcloud\.com/.*#i'                   => array( 'https://soundcloud.com/oembed',                             true  ),
    7978            '#https?://(.+?\.)?slideshare\.net/.*#i'                   => array( 'https://www.slideshare.net/api/oembed/2',                   true  ),
     
    164163         * | TED          | ted.com               |      Yes       | 4.0.0     |
    165164         * | YouTube      | youtube.com/playlist  |      Yes       | 4.0.0     |
    166          * | Vine         | vine.co               |      Yes       | 4.1.0     |
    167165         * | Tumblr       | tumblr.com            |      Yes       | 4.2.0     |
    168166         * | Kickstarter  | kickstarter.com       |      Yes       | 4.2.0     |
     
    191189         * | Rdio         | rdio.com             |      Yes       | 3.6.0     | 4.4.1     |
    192190         * | Rdio         | rd.io                |      Yes       | 3.6.0     | 4.4.1     |
     191         * | Vine         | vine.co              |      Yes       | 4.1.0     | 4.9.0     |
    193192         *
    194193         * @see wp_oembed_add_provider()
Note: See TracChangeset for help on using the changeset viewer.