diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2020-01-06 14:32:30 -0500 |
commit | 10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch) | |
tree | b4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php | |
parent | Updating script for Update (diff) | |
download | blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2 blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip |
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php')
-rw-r--r-- | plugins/jetpack/modules/videopress/class.videopress-edit-attachment.php | 7 |
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 ); } |