summaryrefslogtreecommitdiff
blob: 3caddbd14335a29a06b88d380f5fba71e45f5b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Provides VideoPress videos support when module is disabled.
 *
 * @since 2.4
 * @since 3.9.5 Added compatibility with refactored VideoPress module.
 *
 * @package automattic/jetpack
 */

if ( ! Jetpack::is_module_active( 'videopress' ) ) {

	\Automattic\Jetpack\Assets::add_resource_hint(
		'//v0.wordpress.com',
		'dns-prefetch'
	);

	include_once JETPACK__PLUGIN_DIR . 'modules/videopress/utility-functions.php';
	include_once JETPACK__PLUGIN_DIR . 'modules/videopress/shortcode.php';

}