From f8cfe858c96907e2bc23155abb2f0f3ea75c03bf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 Mar 2019 00:34:52 +0000 Subject: [PATCH] Embeds: Scribd: Add support for `/document/` URL format, in addition to `/doc/`. Props manzoorwani.jk, neobabis, swissspidy. Fixes #46444. Built from https://develop.svn.wordpress.org/trunk@45024 git-svn-id: http://core.svn.wordpress.org/trunk@44833 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 8582fa8a7a..7e9d0611ac 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -60,7 +60,7 @@ class WP_oEmbed { '#https?://flic\.kr/.*#i' => array( 'https://www.flickr.com/services/oembed/', true ), '#https?://(.+\.)?smugmug\.com/.*#i' => array( 'https://api.smugmug.com/services/oembed/', true ), '#https?://(www\.)?hulu\.com/watch/.*#i' => array( 'http://www.hulu.com/api/oembed.{format}', true ), - '#https?://(www\.)?scribd\.com/doc/.*#i' => array( 'https://www.scribd.com/services/oembed', true ), + '#https?://(www\.)?scribd\.com/(doc|document)/.*#i' => array( 'https://www.scribd.com/services/oembed', true ), '#https?://wordpress\.tv/.*#i' => array( 'https://wordpress.tv/oembed/', true ), '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), '#https?://poll\.fm/.*#i' => array( 'https://api.crowdsignal.com/oembed', true ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 0c9f2a7b71..5234d199cb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-45023'; +$wp_version = '5.2-alpha-45024'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.