From 93fc60f36a6c315710788745e6e44e61a55c4df1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 2 Oct 2017 19:09:46 +0000 Subject: [PATCH] Embeds: Add oEmbed support for someecards.com. Props someecards Fixes #40792 git-svn-id: https://develop.svn.wordpress.org/trunk@41681 602fd350-edb4-49c9-b593-d223f7449a82 --- .gitignore | 2 ++ src/wp-includes/class-oembed.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index d4d7745ce4..b6252d227c 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,5 @@ wp-tests-config.php *.patch *.diff .svn + +vendor diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index df225c74b3..359171e37d 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -114,6 +114,9 @@ class WP_oEmbed { '#https?://(www\.)?amzn\.in/.*#i' => array( 'https://read.amazon.in/kp/api/oembed', true ), '#https?://(www\.)?amzn\.asia/.*#i' => array( 'https://read.amazon.com.au/kp/api/oembed', true ), '#https?://(www\.)?z\.cn/.*#i' => array( 'https://read.amazon.cn/kp/api/oembed', true ), + '#https?://www\.someecards\.com/.+-cards/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ), + '#https?://www\.someecards\.com/usercards/viewcard/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ), + '#https?://some\.ly\/.+#i' => array( 'https://www.someecards.com/v2/oembed/', true ), ); if ( ! empty( self::$early_providers['add'] ) ) { @@ -194,6 +197,8 @@ class WP_oEmbed { * | Amazon | a.co | Yes | 4.9.0 | * | Amazon | amzn.to|eu|in|asia | Yes | 4.9.0 | * | Amazon | z.cn | Yes | 4.9.0 | + * | Someecards | someecards.com | Yes | 4.9.0 | + * | Someecards | some.ly | Yes | 4.9.0 | * * No longer supported providers: *