diff --git a/wp-includes/http.php b/wp-includes/http.php index 4b1a60e611..03edce8e88 100644 --- a/wp-includes/http.php +++ b/wp-includes/http.php @@ -52,6 +52,9 @@ function wp_safe_remote_request( $url, $args = array() ) { /** * Retrieve the raw response from a safe HTTP request using the GET method. * + * This function is ideal when the HTTP request is being made to an arbitrary + * URL. The URL is validated to avoid redirection and request forgery attacks. + * * @see wp_remote_request() For more information on the response array format * and default arguments. * @@ -70,6 +73,9 @@ function wp_safe_remote_get( $url, $args = array() ) { /** * Retrieve the raw response from a safe HTTP request using the POST method. * + * This function is ideal when the HTTP request is being made to an arbitrary + * URL. The URL is validated to avoid redirection and request forgery attacks. + * * @see wp_remote_request() For more information on the response array format * and default arguments. *