| 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 ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit( 0 ); |
| 13 |
} |
| 14 |
|
| 15 |
if ( ! Jetpack::is_module_active( 'videopress' ) ) { |
| 16 |
|
| 17 |
\Automattic\Jetpack\Assets::add_resource_hint( |
| 18 |
'//v0.wordpress.com', |
| 19 |
'dns-prefetch' |
| 20 |
); |
| 21 |
|
| 22 |
include_once JETPACK__PLUGIN_DIR . 'modules/videopress/shortcode.php'; |
| 23 |
|
| 24 |
} |
| 25 |
|