Make WordPress Core

Changeset 45024


Ignore:
Timestamp:
03/27/2019 12:33:47 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Embeds: Scribd: Add support for /document/ URL format, in addition to /doc/.

Props manzoorwani.jk, neobabis, swissspidy.
Fixes #46444.

File:
1 edited

Legend:

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

    r44552 r45024  
    6161            '#https?://(.+\.)?smugmug\.com/.*#i'           => array( 'https://api.smugmug.com/services/oembed/', true ),
    6262            '#https?://(www\.)?hulu\.com/watch/.*#i'       => array( 'http://www.hulu.com/api/oembed.{format}', true ),
    63             '#https?://(www\.)?scribd\.com/doc/.*#i'      => array( 'https://www.scribd.com/services/oembed', true ),
     63            '#https?://(www\.)?scribd\.com/(doc|document)/.*#i' => array( 'https://www.scribd.com/services/oembed', true ),
    6464            '#https?://wordpress\.tv/.*#i'                 => array( 'https://wordpress.tv/oembed/', true ),
    6565            '#https?://(.+\.)?polldaddy\.com/.*#i'         => array( 'https://api.crowdsignal.com/oembed', true ),
Note: See TracChangeset for help on using the changeset viewer.