From 15920fc45b2c2156154ac43dee891f03744d0892 Mon Sep 17 00:00:00 2001 From: dd32 Date: Wed, 5 Oct 2011 11:03:56 +0000 Subject: [PATCH] Document that add_query_arg() expects encoded data. See #18086 git-svn-id: http://svn.automattic.com/wordpress/trunk@18885 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 bc14a239c..c2beafadb 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 *