Skip to content

Commit c0d073d

Browse files
committed
Embeds: Add Canva to oEmbed provider allowlist.
Props swissspidy. Fixes #58840. git-svn-id: https://develop.svn.wordpress.org/trunk@59598 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4051e31 commit c0d073d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public function __construct() {
110110
'#https?://pca\.st/.+#i' => array( 'https://pca.st/oembed.json', true ),
111111
'#https?://((play|www)\.)?anghami\.com/.*#i' => array( 'https://api.anghami.com/rest/v1/oembed.view', true ),
112112
'#https?://bsky.app/profile/.*/post/.*#i' => array( 'https://embed.bsky.app/oembed', true ),
113+
'#https?://(www\.)?canva\.com/design/.*/view.*#i' => array( 'https://canva.com/_oembed', true ),
113114
);
114115

115116
if ( ! empty( self::$early_providers['add'] ) ) {
@@ -190,6 +191,7 @@ public function __construct() {
190191
* | Crowdsignal | crowdsignal.net | 6.2.0 |
191192
* | Anghami | anghami.com | 6.3.0 |
192193
* | Bluesky | bsky.app | 6.6.0 |
194+
* | Canva | canva.com | 6.8.0 |
193195
*
194196
* No longer supported providers:
195197
*

0 commit comments

Comments
 (0)