summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/modules/videopress/utility-functions.php
parentUpdating script for Update (diff)
downloadblogs-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/utility-functions.php')
-rw-r--r--plugins/jetpack/modules/videopress/utility-functions.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/videopress/utility-functions.php b/plugins/jetpack/modules/videopress/utility-functions.php
index 345fa719..989eaf52 100644
--- a/plugins/jetpack/modules/videopress/utility-functions.php
+++ b/plugins/jetpack/modules/videopress/utility-functions.php
@@ -1,5 +1,7 @@
<?php
+use Automattic\Jetpack\Connection\Client;
+
/**
* We won't have any videos less than sixty pixels wide. That would be silly.
*/
@@ -69,7 +71,7 @@ function videopress_get_video_details( $guid ) {
/**
* Get an attachment ID given a URL.
*
- * Modified from http://wpscholar.com/blog/get-attachment-id-from-wp-image-url/
+ * Modified from https://wpscholar.com/blog/get-attachment-id-from-wp-image-url/
*
* @todo: Add some caching in here.
*
@@ -490,7 +492,7 @@ function videopress_make_video_get_path( $guid ) {
'%s://%s/rest/v%s/videos/%s',
'https',
JETPACK__WPCOM_JSON_API_HOST,
- Jetpack_Client::WPCOM_JSON_API_VERSION,
+ Client::WPCOM_JSON_API_VERSION,
$guid
);
}