@@ -355,7 +355,7 @@ public function bypass_video_audio( $flag, $file ) {
355355 public function is_valid_key ( $ key ) {
356356 $ validate_url = trailingslashit ( $ this ->store_url ) . 'rt-eddsl-api/?rt-eddsl-license-key= ' . $ key ;
357357 if ( function_exists ( 'vip_safe_wp_remote_get ' ) ) {
358- $ validation_page = vip_safe_wp_remote_get ( $ validate_url );
358+ $ validation_page = vip_safe_wp_remote_get ( $ validate_url, '' , 3 , 3 );
359359 } else {
360360 $ validation_page = wp_remote_get ( $ validate_url ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
361361 }
@@ -383,7 +383,7 @@ public function is_valid_key( $key ) {
383383 public function update_usage ( $ key ) {
384384 $ usage_url = trailingslashit ( $ this ->transcoding_api_url ) . 'usage/ ' . $ key ;
385385 if ( function_exists ( 'vip_safe_wp_remote_get ' ) ) {
386- $ usage_page = vip_safe_wp_remote_get ( $ usage_url );
386+ $ usage_page = vip_safe_wp_remote_get ( $ usage_url, '' , 3 , 3 );
387387 } else {
388388 $ usage_page = wp_remote_get ( $ usage_url ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
389389 }
@@ -735,7 +735,7 @@ public function usage_widget() {
735735 *
736736 * @param array $post_array Attachment data.
737737 *
738- * @return url
738+ * @return string
739739 */
740740 public function add_media_thumbnails ( $ post_array ) {
741741 $ defaults = array (
@@ -899,7 +899,7 @@ public function add_transcoded_files( $file_post_array, $attachment_id, $job_for
899899 $ post_mime_type = 'mp4 ' === $ new_wp_attached_file_pathinfo ['extension ' ] ? 'video/mp4 ' : 'audio/mp3 ' ;
900900 $ attachemnt_url = wp_get_attachment_url ( $ attachment_id );
901901 try {
902- $ response = function_exists ( 'vip_safe_wp_remote_get ' ) ? vip_safe_wp_remote_get ( $ download_url ) : wp_remote_get ( $ download_url ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
902+ $ response = function_exists ( 'vip_safe_wp_remote_get ' ) ? vip_safe_wp_remote_get ( $ download_url, '' , 3 , 3 ) : wp_remote_get ( $ download_url ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
903903 } catch ( Exception $ e ) {
904904 $ flag = $ e ->getMessage ();
905905 }
@@ -1394,7 +1394,9 @@ public function nofity_transcoding_failed( $job_id, $error_msg ) {
13941394 *
13951395 * @since 1.2
13961396 *
1397- * @param string $post_id post ID.
1397+ * @param int $post_id post ID.
1398+ *
1399+ * @return string
13981400 */
13991401 public function get_transcoding_status ( $ post_id ) {
14001402
@@ -1439,7 +1441,7 @@ public function get_transcoding_status( $post_id ) {
14391441 } else {
14401442
14411443 if ( function_exists ( 'vip_safe_wp_remote_get ' ) ) {
1442- $ status_page = vip_safe_wp_remote_get ( $ status_url );
1444+ $ status_page = vip_safe_wp_remote_get ( $ status_url, '' , 3 , 3 );
14431445 } else {
14441446 $ status_page = wp_remote_get ( $ status_url , array ( 'timeout ' => 120 ) ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get, WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout
14451447 }
0 commit comments