Embeds: Add Anghami as a trusted oEmbed provider.

Props swissspidy, Boniu91, tb1909, monzuralam, azizantoun, audrasjb.
Fixes #49850

git-svn-id: https://develop.svn.wordpress.org/trunk@55961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2023-06-21 08:12:22 +00:00
parent 042aeb58a0
commit d3a3f019d6

View File

@ -109,6 +109,7 @@ class WP_oEmbed {
'#https?://([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?/.*#i' => array( 'https://www.pinterest.com/oembed.json', true ),
'#https?://(www\.)?wolframcloud\.com/obj/.+#i' => array( 'https://www.wolframcloud.com/oembed', true ),
'#https?://pca\.st/.+#i' => array( 'https://pca.st/oembed.json', true ),
'#https?://((play|www)\.)?anghami\.com/.*#i' => array( 'https://api.anghami.com/rest/v1/oembed.view', true ),
);
if ( ! empty( self::$early_providers['add'] ) ) {
@ -188,6 +189,7 @@ class WP_oEmbed {
* | WolframCloud | wolframcloud.com | 5.9.0 |
* | Pocket Casts | pocketcasts.com | 6.1.0 |
* | Crowdsignal | crowdsignal.net | 6.2.0 |
* | Anghami | anghami.com | 6.3.0 |
*
* No longer supported providers:
*