Make WordPress Core

Ticket #34031: 34031.diff

File 34031.diff, 1.5 KB (added by kraftbj, 10 years ago)

Adds VP as a provider.

  • src/wp-includes/class-oembed.php

     
    3333         * @since 2.9.0
    3434         */
    3535        public function __construct() {
     36                $host = esc_url( home_url() );
    3637                $providers = array(
    3738                        '#http://((m|www)\.)?youtube\.com/watch.*#i'          => array( 'http://www.youtube.com/oembed',                      true  ),
    3839                        '#https://((m|www)\.)?youtube\.com/watch.*#i'         => array( 'http://www.youtube.com/oembed?scheme=https',         true  ),
     
    7475                        '#https?://kck\.st/.*#i'                              => array( 'https://www.kickstarter.com/services/oembed',        true  ),
    7576                        '#https?://cloudup\.com/.*#i'                         => array( 'https://cloudup.com/oembed',                         true  ),
    7677                        '#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  ),
    7779                );
    7880
    7981                if ( ! empty( self::$early_providers['add'] ) ) {
     
    148150                 * | ------------ | -------------------- | ----- | --------- |
    149151                 * | Cloudup      | cloudup.com          |  Yes  | 4.4.0     |
    150152                 * | ReverbNation | reverbnation.com     |  Yes  | 4.4.0     |
     153                 * | VideoPress   | videopress.com       |  Yes  | 4.4.0     |
    151154                 *
    152155                 * No longer supported providers:
    153156                 *