2019-11-15 23:26:29 +01:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Provides VideoPress videos support when module is disabled.
|
|
|
|
|
*
|
|
|
|
|
* @since 2.4
|
|
|
|
|
* @since 3.9.5 Added compatibility with refactored VideoPress module.
|
|
|
|
|
*
|
2021-04-27 08:32:47 +02:00
|
|
|
* @package automattic/jetpack
|
2019-11-15 23:26:29 +01:00
|
|
|
*/
|
|
|
|
|
|
2025-12-12 13:13:07 +01:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
|
exit( 0 );
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-15 23:26:29 +01:00
|
|
|
if ( ! Jetpack::is_module_active( 'videopress' ) ) {
|
|
|
|
|
|
2020-09-15 14:30:05 +02:00
|
|
|
\Automattic\Jetpack\Assets::add_resource_hint(
|
|
|
|
|
'//v0.wordpress.com',
|
|
|
|
|
'dns-prefetch'
|
2019-11-15 23:26:29 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
include_once JETPACK__PLUGIN_DIR . 'modules/videopress/shortcode.php';
|
|
|
|
|
|
|
|
|
|
}
|