| 1 |
<?php |
| 2 |
/** |
| 3 |
* Provides VideoPress videos support when module is disabled. |
| 4 |
* |
| 5 |
* @since 2.4 |
| 6 |
* @since 3.9.5 Added compatibility with refactored VideoPress module. |
| 7 |
* |
| 8 |
* @package automattic/jetpack |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! Jetpack::is_module_active( 'videopress' ) ) { |
| 12 |
|
| 13 |
\Automattic\Jetpack\Assets::add_resource_hint( |
| 14 |
'//v0.wordpress.com', |
| 15 |
'dns-prefetch' |
| 16 |
); |
| 17 |
|
| 18 |
include_once JETPACK__PLUGIN_DIR . 'modules/videopress/utility-functions.php'; |
| 19 |
include_once JETPACK__PLUGIN_DIR . 'modules/videopress/shortcode.php'; |
| 20 |
|
| 21 |
} |
| 22 |
|