Ticket #34031: 34031.diff
| File 34031.diff, 1.5 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/class-oembed.php
33 33 * @since 2.9.0 34 34 */ 35 35 public function __construct() { 36 $host = esc_url( home_url() ); 36 37 $providers = array( 37 38 '#http://((m|www)\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed', true ), 38 39 '#https://((m|www)\.)?youtube\.com/watch.*#i' => array( 'http://www.youtube.com/oembed?scheme=https', true ), … … 74 75 '#https?://kck\.st/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ), 75 76 '#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ), 76 77 '#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.com/oembed', true ), 78 '#https?://videopress.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true ), 77 79 ); 78 80 79 81 if ( ! empty( self::$early_providers['add'] ) ) { … … 148 150 * | ------------ | -------------------- | ----- | --------- | 149 151 * | Cloudup | cloudup.com | Yes | 4.4.0 | 150 152 * | ReverbNation | reverbnation.com | Yes | 4.4.0 | 153 * | VideoPress | videopress.com | Yes | 4.4.0 | 151 154 * 152 155 * No longer supported providers: 153 156 *