From dbe4197dd31c4a535ec4d375d0203353daef59a8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 30 Jul 2013 18:39:57 +0000 Subject: [PATCH] Add missing documentation from [24894]. see #24646. git-svn-id: https://develop.svn.wordpress.org/trunk@24895 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/http.php | 6 ++++++ 1 file changed, 6 insertions(+) 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. *