PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/shortcodes/others.php +5 -1 13.5.216.3-a.1 View file →
@@ -8,8 +8,12 @@
8 8 *
9 9 * @package automattic/jetpack
10 10 */
11 11
12 +if ( ! defined( 'ABSPATH' ) ) {
13 + exit( 0 );
14 +}
15 +
12 16 wp_oembed_add_provider( 'https://me.sh/*', 'https://me.sh/oembed?format=json' );
13 17 wp_oembed_add_provider( '#https?://(www\.)?gfycat\.com/.*#i', 'https://api.gfycat.com/v1/oembed', true );
14 18 wp_oembed_add_provider( '#https?://[^.]+\.(wistia\.com|wi\.st)/(medias|embed)/.*#', 'https://fast.wistia.com/oembed', true );
15 19 wp_oembed_add_provider( '#https?://sketchfab\.com/.*#i', 'https://sketchfab.com/oembed', true );
@@ -25,9 +29,9 @@
25 29 * @param string $url The URL to fetch.
26 30 *
27 31 * @return int The timeout value in seconds.
28 32 */
29 -function jetpack_oembed_timeout_override( $timeout, $url ) {
33 +function jetpack_oembed_timeout_override( $timeout, $url = '' ) {
30 34 if (
31 35 is_string( $url )
32 36 && str_contains( $url, 'iwmb.icloud.com' )
33 37 ) {