summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/videopress/editor-media-view.php')
-rw-r--r--plugins/jetpack/modules/videopress/editor-media-view.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/videopress/editor-media-view.php b/plugins/jetpack/modules/videopress/editor-media-view.php
index ed65a08c..f9ff3498 100644
--- a/plugins/jetpack/modules/videopress/editor-media-view.php
+++ b/plugins/jetpack/modules/videopress/editor-media-view.php
@@ -1,5 +1,7 @@
<?php
+use Automattic\Jetpack\Assets;
+
/**
* WordPress Shortcode Editor View JS Code
*/
@@ -15,7 +17,7 @@ function videopress_handle_editor_view_js() {
wp_enqueue_style( 'videopress-editor-ui', plugins_url( 'css/editor.css', __FILE__ ) );
wp_enqueue_script(
'videopress-editor-view',
- Jetpack::get_file_url_for_environment(
+ Assets::get_file_url_for_environment(
'_inc/build/videopress/js/editor-view.min.js',
'modules/videopress/js/editor-view.js'
),
@@ -27,7 +29,7 @@ function videopress_handle_editor_view_js() {
'videopress-editor-view',
'vpEditorView',
array(
- 'home_url_host' => parse_url( home_url(), PHP_URL_HOST ),
+ 'home_url_host' => wp_parse_url( home_url(), PHP_URL_HOST ),
'min_content_width' => VIDEOPRESS_MIN_WIDTH,
'content_width' => $content_width,
'modal_labels' => array(