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-video.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-video.php')
-rw-r--r-- | plugins/jetpack/modules/videopress/class.videopress-video.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/jetpack/modules/videopress/class.videopress-video.php b/plugins/jetpack/modules/videopress/class.videopress-video.php index a8c3a6b8..f12c5fba 100644 --- a/plugins/jetpack/modules/videopress/class.videopress-video.php +++ b/plugins/jetpack/modules/videopress/class.videopress-video.php @@ -314,7 +314,7 @@ class VideoPress_Video { * @return bool|string host component of the URL, or false if none found */ public static function hostname( $url ) { - return parse_url( esc_url_raw( $url ), PHP_URL_HOST ); + return wp_parse_url( esc_url_raw( $url ), PHP_URL_HOST ); } @@ -336,10 +336,7 @@ class VideoPress_Video { $request_params['maxwidth'] = $this->maxwidth; } - $url = 'http://videopress.com/data/wordpress.json'; - if ( is_ssl() ) { - $url = 'https://v.wordpress.com/data/wordpress.json'; - } + $url = 'https://v.wordpress.com/data/wordpress.json'; $response = wp_remote_get( add_query_arg( $request_params, $url ), |