From f07212c873eaf5511fce7e92cd9835f70ad4f967 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Wed, 5 Oct 2011 11:03:56 +0000 Subject: [PATCH] Document that add_query_arg() expects encoded data. See #18086 git-svn-id: https://develop.svn.wordpress.org/trunk@18885 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index bc14a239c0..c2beafadb4 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1420,7 +1420,8 @@ function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=t * * Adding a single key & value or an associative array. Setting a key value to * an empty string removes the key. Omitting oldquery_or_uri uses the $_SERVER - * value. + * value. Additional values provided are expected to be encoded appropriately + * with urlencode() or rawurlencode(). * * @since 1.5.0 *