summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/functions-compat.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/functions-compat.php')
-rw-r--r--wp-inst/wp-includes/functions-compat.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/functions-compat.php b/wp-inst/wp-includes/functions-compat.php
index 25bef35..0eb8c42 100644
--- a/wp-inst/wp-includes/functions-compat.php
+++ b/wp-inst/wp-includes/functions-compat.php
@@ -73,7 +73,7 @@ if (!defined('CASE_UPPER')) {
* @link http://php.net/function.array_change_key_case
* @author Stephan Schmidt <schst@php.net>
* @author Aidan Lister <aidan@php.net>
- * @version $Revision: 3689 $
+ * @version $Revision: 3758 $
* @since PHP 4.2.0
* @require PHP 4.0.0 (user_error)
*/
@@ -98,4 +98,17 @@ if (!function_exists('array_change_key_case')) {
}
}
+// From php.net
+if(!function_exists('http_build_query')) {
+ function http_build_query( $formdata, $numeric_prefix = null, $key = null ) {
+ $res = array();
+ foreach ((array)$formdata as $k=>$v) {
+ $tmp_key = urlencode(is_int($k) ? $numeric_prefix.$k : $k);
+ if ($key) $tmp_key = $key.'['.$tmp_key.']';
+ $res[] = ( ( is_array($v) || is_object($v) ) ? http_build_query($v, null, $tmp_key) : $tmp_key."=".urlencode($v) );
+ }
+ $separator = ini_get('arg_separator.output');
+ return implode($separator, $res);
+ }
+}
?>