summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php')
-rw-r--r--plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php b/plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php
index be7ddfde..5d55b2c6 100644
--- a/plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php
+++ b/plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php
@@ -1,4 +1,7 @@
<?php
+
+use Automattic\Jetpack\Connection\Client;
+
/**
* VideoPress edit attachment screen
*
@@ -114,7 +117,7 @@ class VideoPress_Edit_Attachment {
$guid = get_post_meta( $post_id, 'videopress_guid', true );
$endpoint = "videos/{$guid}";
- $result = Jetpack_Client::wpcom_json_api_request_as_blog( $endpoint, Jetpack_Client::WPCOM_JSON_API_VERSION, $args, $values );
+ $result = Client::wpcom_json_api_request_as_blog( $endpoint, Client::WPCOM_JSON_API_VERSION, $args, $values );
if ( is_wp_error( $result ) ) {
$post['errors']['videopress']['errors'][] = __( 'There was an issue saving your updates to the VideoPress service. Please try again later.', 'jetpack' );
@@ -152,7 +155,7 @@ class VideoPress_Edit_Attachment {
'%s://%s/rest/v%s/videos/%s',
'https',
'public-api.wordpress.com', // JETPACK__WPCOM_JSON_API_HOST,
- Jetpack_Client::WPCOM_JSON_API_VERSION,
+ Client::WPCOM_JSON_API_VERSION,
$guid
);
}