Skip to content

Commit

Permalink
vipcs
Browse files Browse the repository at this point in the history
  • Loading branch information
psorensen committed Aug 6, 2024
1 parent 7e5996d commit d68a703
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/Classifai/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,12 @@ function safe_wp_remote_get( string $url, array $args = [] ) {
return vip_safe_wp_remote_get( $url, $args );
}

wp_parse_args(
wp_parse_args( // phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout.
$args,
[
'timeout' => 20,

Check failure on line 681 in includes/Classifai/Helpers.php

View workflow job for this annotation

GitHub Actions / vipcs

Detected high remote request timeout. `timeout` is set to `20`.
]
);

// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get -- use of `vip_safe_wp_remote_get` is done when available.
return wp_remote_get( $url, $args );
return wp_remote_get( $url, $args ); // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get -- use of `vip_safe_wp_remote_get` is done when available.
}

0 comments on commit d68a703

Please sign in to comment.