Changeset 28950
- Timestamp:
- 07/02/2014 12:33:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-oembed.php
r28949 r28950 28 28 */ 29 29 public function __construct() { 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( 30 $providers = array( 93 31 '#http://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 94 32 '#https://(www\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), … … 127 65 '#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'http://www.ted.com/talks/oembed.{format}', true ), 128 66 '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'http://animoto.com/oembeds/create', true ), 129 ) );67 ); 130 68 131 69 if ( ! empty( self::$early_providers['add'] ) ) { … … 148 86 * Discovery is disabled for users lacking the unfiltered_html capability. 149 87 * Only providers in this array will be used for those users. 88 * 89 * Supported providers: 90 * 91 * | ------------ | -------------------- | ----- | ------------------ | 92 * | Provider | Flavor | SSL | Since | 93 * | ------------ | -------------------- | ----- | ------------------ | 94 * | Blip | blip.tv | | 2.9.0 | 95 * | Dailymotion | dailymotion.com | Yes | 2.9.0 | 96 * | Flickr | flickr.com | Yes | 2.9.0 | 97 * | Hulu | hulu.com | Yes | 2.9.0 | 98 * | Photobucket | photobucket.com | | 2.9.0 | 99 * | Qik | qik.com | | 2.9.0 (deprecated) | 100 * | Revision3 | revision3.com | | 2.9.0 | 101 * | Scribd | scribd.com | Yes | 2.9.0 | 102 * | Viddler | viddler.com | | 2.9.0 (deprecated) | 103 * | Vimeo | vimeo.com | Yes | 2.9.0 | 104 * | WordPress.tv | wordpress.tv | | 2.9.0 | 105 * | YouTube | youtube.com/watch | Both | 2.9.0 | 106 * | ------------ | -------------------- | ----- | ------------------ | 107 * | Funny or Die | funnyordie.com | Yes | 3.0.0 | 108 * | Polldaddy | polldaddy.com | Yes | 3.0.0 | 109 * | SmugMug | smugmug.com | Yes | 3.0.0 | 110 * | YouTube | youtu.be | Both | 3.0.0 | 111 * | ------------ | -------------------- | ----- | ------------------ | 112 * | Twitter | twitter.com | Yes | 3.4.0 | 113 * | ------------ | -------------------- | ----- | ------------------ | 114 * | Instagram | instagram.com | | 3.5.0 | 115 * | Instagram | instagr.am | | 3.5.0 | 116 * | Slideshare | slideshare.net | Yes | 3.5.0 | 117 * | SoundCloud | soundcloud.com | Yes | 3.5.0 | 118 * | ------------ | -------------------- | ----- | ------------------ | 119 * | Dailymotion | dai.ly | | 3.6.0 | 120 * | Flickr | flic.kr | Yes | 3.6.0 | 121 * | Rdio | rdio.com | Yes | 3.6.0 | 122 * | Rdio | rd.io | Yes | 3.6.0 | 123 * | Spotify | spotify.com | Yes | 3.6.0 | 124 * | ------------ | -------------------- | ----- | ------------------ | 125 * | Imgur | imgur.com | Yes | 3.9.0 | 126 * | Meetup.com | meetup.com | Yes | 3.9.0 | 127 * | Meetup.com | meetu.ps | Yes | 3.9.0 | 128 * | ------------ | -------------------- | ----- | ------------------ | 129 * | Animoto | animoto.com | Yes | 4.0.0 | 130 * | Animoto | video214.com | Yes | 4.0.0 | 131 * | CollegeHumor | collegehumor.com | Yes | 4.0.0 | 132 * | Issuu | issuu.com | Yes | 4.0.0 | 133 * | Mixcloud | mixcloud.com | Yes | 4.0.0 | 134 * | Polldaddy | poll.fm | Yes | 4.0.0 | 135 * | TED | ted.com | Yes | 4.0.0 | 136 * | YouTube | youtube.com/playlist | Both | 4.0.0 | 137 * | ------------ | -------------------- | ----- | ------------------ | 150 138 * 151 139 * @see wp_oembed_add_provider()
Note: See TracChangeset
for help on using the changeset viewer.