WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/30/2016 09:42:01 PM (4 years ago)
Author:
ocean90
Message:

Embeds: Add oEmbed support for User, List and Like Twitter timelines.

Props earnjam.
Fixes #38003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed.php

    r38692 r38693  
    2121        'polldaddy-shorturl'   => '#https?://poll\.fm/.*#i',
    2222        'funnyordie'           => '#https?://(www\.)?funnyordie\.com/videos/.*#i',
    23         'twitter'              => '#https?://(www\.)?twitter\.com/.+?/status(es)?/.*#i',
    24         'twitter-timeline'     => '#https?://(www\.)?twitter\.com/.+?/timelines/.*#i',
     23        'twitter'              => '#https?://(www\.)?twitter\.com/\w{1,15}/status(es)?/.*#i',
     24        'twitter-user'         => '#https?://(www\.)?twitter\.com/\w{1,15}$#i',
     25        'twitter-likes'        => '#https?://(www\.)?twitter\.com/\w{1,15}/likes$#i',
     26        'twitter-list'         => '#https?://(www\.)?twitter\.com/\w{1,15}/lists/.*#i',
     27        'twitter-timeline'     => '#https?://(www\.)?twitter\.com/\w{1,15}/timelines/.*#i',
    2528        'twitter-moment'       => '#https?://(www\.)?twitter\.com/i/moments/.*#i',
    2629        'vine'                 => '#https?://vine\.co/v/.*#i',
     
    585588            ),
    586589            array(
     590                $providers['twitter-user'],
     591                array(
     592                    'https://twitter.com/WordPress',
     593                ),
     594            ),
     595            array(
     596                $providers['twitter-likes'],
     597                array(
     598                    'https://twitter.com/WordPress/likes',
     599                ),
     600            ),
     601            array(
     602                $providers['twitter-list'],
     603                array(
     604                    'https://twitter.com/TwitterDev/lists/national-parks',
     605                ),
     606            ),
     607            array(
    587608                $providers['twitter-timeline'],
    588609                array(
Note: See TracChangeset for help on using the changeset viewer.