Skip to content

Commit cba8f2d

Browse files
authored
Merge pull request #438 from Automattic/add/wp-remote-get-message
wp_remote_get: expand on message
2 parents fc02f49 + 60ba1c8 commit cba8f2d

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)