Skip to content

Commit

Permalink
fix: updated check when using wp_remote_get
Browse files Browse the repository at this point in the history
  • Loading branch information
preda-bogdan committed May 17, 2024
1 parent 3f6c925 commit b9d509d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modules/Rollback.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ private function get_remote_versions() {
if ( empty( $url ) ) {
return [];
}
$response = function_exists( 'wp_remote_get_wp_remote_get' )
? wp_remote_get_wp_remote_get( $url )
$response = function_exists( 'vip_safe_wp_remote_get' )
? vip_safe_wp_remote_get( $url )
: wp_remote_get( $url ); //phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
if ( is_wp_error( $response ) ) {
return array();
Expand Down

0 comments on commit b9d509d

Please sign in to comment.