Make WordPress Core


Ignore:
Timestamp:
10/22/2015 06:16:12 PM (9 years ago)
Author:
wonderboymusic
Message:

oEmbed: add Reddit Comments as a provider

Docs: https://github.com/reddit/reddit/wiki/oEmbed

Props swissspidy.
Fixes #31752.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r34907 r35356  
    7777            '#https?://(www\.)?reverbnation\.com/.*#i'            => array( 'https://www.reverbnation.com/oembed',                       true  ),
    7878            '#https?://videopress.com/v/.*#'                      => array( 'https://public-api.wordpress.com/oembed/1.0/?for=' . $host, true  ),
     79            '#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed',                             true  ),
    7980        );
    8081
     
    144145         * | ReverbNation | reverbnation.com     |  Yes  | 4.4.0     |
    145146         * | VideoPress   | videopress.com       |  Yes  | 4.4.0     |
     147         * | Reddit       | reddit.com           |  Yes  | 4.4.0     |
    146148         *
    147149         * No longer supported providers:
Note: See TracChangeset for help on using the changeset viewer.