Show
Ignore:
Timestamp:
05/11/06 23:05:45 (3 years ago)
Author:
ryan
Message:

Backport nonces and pluggable cookies.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/functions-compat.php

    r3471 r3771  
    9898} 
    9999 
     100// From php.net 
     101if(!function_exists('http_build_query')) { 
     102   function http_build_query( $formdata, $numeric_prefix = null, $key = null ) { 
     103       $res = array(); 
     104       foreach ((array)$formdata as $k=>$v) { 
     105           $tmp_key = urlencode(is_int($k) ? $numeric_prefix.$k : $k); 
     106           if ($key) $tmp_key = $key.'['.$tmp_key.']'; 
     107           $res[] = ( ( is_array($v) || is_object($v) ) ? http_build_query($v, null, $tmp_key) : $tmp_key."=".urlencode($v) ); 
     108       } 
     109       $separator = ini_get('arg_separator.output'); 
     110       return implode($separator, $res); 
     111   } 
     112} 
    100113?>