PHP 8.2.31
Preview: others.php Size: 2.38 KB
/home/nshryvcy/himaltourism.com/wp-content/plugins/jetpack/modules/shortcodes/others.php

<?php
/**
 * Extra oEmbed providers that we use on wpcom for feature parity.
 *
 * This file will be loaded even when you don't use the Shortcodes feature,
 * as these embeds are considered safe to use on any site
 * (and may end up embedded in Core in the future).
 *
 * @package automattic/jetpack
 */

wp_oembed_add_provider( 'https://me.sh/*', 'https://me.sh/oembed?format=json' );
wp_oembed_add_provider( '#https?://(www\.)?gfycat\.com/.*#i', 'https://api.gfycat.com/v1/oembed', true );
wp_oembed_add_provider( '#https?://[^.]+\.(wistia\.com|wi\.st)/(medias|embed)/.*#', 'https://fast.wistia.com/oembed', true );
wp_oembed_add_provider( '#https?://sketchfab\.com/.*#i', 'https://sketchfab.com/oembed', true );
wp_oembed_add_provider( '#https?://(www\.)?icloud\.com/keynote/.*#i', 'https://iwmb.icloud.com/iwmb/oembed', true );
wp_oembed_add_provider( '#https?://(www\.)?icloud\.com\.cn/keynote/.*#i', 'https://iwmb.icloud.com.cn/iwmb/oembed', true );
wp_oembed_add_provider( '#https?://((song|album|artist|pods|playlist)\.link|odesli\.com?|mylink\.page)/.*#', 'https://odesli.co/oembed', true );
wp_oembed_add_provider( '#https?://(www\.)?loom\.com/share/.*#i', 'https://www.loom.com/v1/oembed', true );

/**
 * Filters the HTTP request timeout value so that we can increase the timeout for iCloud oEmbeds.
 *
 * @param int    $timeout The timeout value in seconds.
 * @param string $url     The URL to fetch.
 *
 * @return int The timeout value in seconds.
 */
function jetpack_oembed_timeout_override( $timeout, $url ) {
	if ( false !== strpos( $url, 'iwmb.icloud.com' ) ) {
		return 10;
	}
	return $timeout;
}

// TODO: Remove this. This should hopefully be a temporary hack since Apple's oEmbed often seems to take more than 5 seconds to respond. 10 is an arbitrary number of seconds that seems to work better.
add_filter( 'http_request_timeout', 'jetpack_oembed_timeout_override', 10, 2 );

/**
 * Conditionally add PocketCasts as an oEmbed provider in advanced of its inclusion in WP 6.1.
 *
 * @todo Remove when WordPress 6.1 is the minimum supported version.
 */
global $wp_version;
if ( version_compare( $wp_version, '6.1-alpha-53744', '<' ) ) {
	wp_oembed_add_provider( '#https?://pca\.st/.+#i', 'https://pca.st/oembed.json', true );
}
// WordPress core only registers pca.st, not pcast.pocketcasts.net.
wp_oembed_add_provider( '#https?://pcast\.pocketcasts\.net/.+#i', 'https://pcast.pocketcasts.net/oembed.json', true );

Directory Contents

Dirs: 4 × Files: 54

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
images DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
img DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
js DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
3.31 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
3.92 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.38 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.70 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
8.77 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
803 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
13.07 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
265 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
21.83 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
15.27 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.00 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.42 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
383 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
9.21 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.53 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
8.29 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
9.84 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.97 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.03 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.70 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
920 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.14 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
14.50 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.03 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
3.22 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.62 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.38 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
1.79 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
14.53 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
9.16 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
18.93 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.45 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
562 B lrw-r--r-- 2023-04-04 05:35:21
Edit Download
3.81 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
8.89 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
3.63 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
8.65 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
3.21 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.35 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
8.51 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.63 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.93 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.24 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.41 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.68 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.13 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
423 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
11.13 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
2.61 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.92 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.81 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.38 KB lrw-r--r-- 2023-04-04 05:35:21
Edit Download
20.50 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).