Skip to content

Commit 60ba1c8

Browse files
committed
wp_remote_get: expand on message
Encourage developers to switch to the VIP version of the function by telling them a benefit. Fixes #436.
1 parent fc02f49 commit 60ba1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPressVIPMinimum/Sniffs/Functions/RestrictedFunctionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function getGroups() {
295295
// @link VIP Go: https://wpvip.com/documentation/vip-go/code-review-blockers-warnings-notices/#remote-calls
296296
'wp_remote_get' => [
297297
'type' => 'warning',
298-
'message' => '%s() is highly discouraged, please use vip_safe_wp_remote_get() instead.',
298+
'message' => '%s() is highly discouraged. Please use vip_safe_wp_remote_get() instead which is designed to more gracefully handle failure than wp_remote_get() does.',
299299
'functions' => [
300300
'wp_remote_get',
301301
],

0 commit comments

Comments
 (0)