Changeset 28949
- Timestamp:
- 07/02/2014 12:18:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-oembed.php
r28923 r28949 25 25 * Constructor 26 26 * 27 * @ uses apply_filters() Filters a list of pre-defined oEmbed providers.27 * @since 2.9.0 28 28 */ 29 29 public function __construct() { 30 $providers = array( 30 /** 31 * Filter the list of oEmbed providers. 32 * 33 * Discovery is disabled for users lacking the unfiltered_html capability. 34 * Only providers in this array will be used for those users. 35 * 36 * Supported providers: 37 * 38 * | ------------ | -------------------- | ----- | ------------------ | 39 * | Provider | Flavor | SSL | Since | 40 * | ------------ | -------------------- | ----- | ------------------ | 41 * | Blip | blip.tv | | 2.9.0 | 42 * | Dailymotion | dailymotion.com | Yes | 2.9.0 | 43 * | Flickr | flickr.com | Yes | 2.9.0 | 44 * | Hulu | hulu.com | Yes | 2.9.0 | 45 * | Photobucket | photobucket.com | | 2.9.0 | 46 * | Qik | qik.com | | 2.9.0 (deprecated) | 47 * | Revision3 | revision3.com | | 2.9.0 | 48 * | Scribd | scribd.com | Yes | 2.9.0 | 49 * | Viddler | viddler.com | | 2.9.0 (deprecated) | 50 * | Vimeo | vimeo.com | Yes | 2.9.0 | 51 * | WordPress.tv | wordpress.tv | | 2.9.0 | 52 * | YouTube | youtube.com/watch | Both | 2.9.0 | 53 * | ------------ | -------------------- | ----- | ------------------ | 54 * | Funny or Die | funnyordie.com | Yes | 3.0.0 | 55 * | Polldaddy | polldaddy.com | Yes | 3.0.0 | 56 * | SmugMug | smugmug.com | Yes | 3.0.0 | 57 * | YouTube | youtu.be | Both | 3.0.0 | 58 * | ------------ | -------------------- | ----- | ------------------ | 59 * | Twitter | twitter.com | Yes | 3.4.0 | 60 * | ------------ | -------------------- | ----- | ------------------ | 61 * | Instagram | instagram.com | | 3.5.0 | 62 * | Instagram | instagr.am | | 3.5.0 | 63 * | Slideshare | slideshare.net | Yes | 3.5.0 | 64 * | SoundCloud | soundcloud.com | Yes | 3.5.0 | 65 * | ------------ | -------------------- | ----- | ------------------ | 66 * | Dailymotion | dai.ly | | 3.6.0 | 67 * | Flickr | flic.kr | Yes | 3.6.0 | 68 * | Rdio | rdio.com | Yes | 3.6.0 | 69 * | Rdio | rd.io | Yes | 3.6.0 | 70 * | Spotify | spotify.com | Yes | 3.6.0 | 71 * | ------------ | -------------------- | ----- | ------------------ | 72 * | Imgur | imgur.com | Yes | 3.9.0 | 73 * | Meetup.com | meetup.com | Yes | 3.9.0 | 74 * | Meetup.com | meetu.ps | Yes | 3.9.0 | 75 * | ------------ | -------------------- | ----- | ------------------ | 76 * | Animoto | animoto.com | Yes | 4.0.0 | 77 * | Animoto | video214.com | Yes | 4.0.0 | 78 * | CollegeHumor | collegehumor.com | Yes | 4.0.0 | 79 * | Issuu | issuu.com | Yes | 4.0.0 | 80 * | Mixcloud | mixcloud.com | Yes | 4.0.0 | 81 * | Polldaddy | poll.fm | Yes | 4.0.0 | 82 * | TED | ted.com | Yes | 4.0.0 | 83 * | YouTube | youtube.com/playlist | Both | 4.0.0 | 84 * | ------------ | -------------------- | ----- | ------------------ | 85 * 86 * @see wp_oembed_add_provider() 87 * 88 * @since 2.9.0 89 * 90 * @param array $providers An array of popular oEmbed providers. 91 */ 92 $providers = apply_filters( 'oembed_providers', array( 31 93 '#http://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 32 94 '#https://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), … … 65 127 '#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'http://www.ted.com/talks/oembed.{format}', true ), 66 128 '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'http://animoto.com/oembeds/create', true ), 67 ) ;129 ) ); 68 130 69 131 if ( ! empty( self::$early_providers['add'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.