Make WordPress Core


Ignore:
Timestamp:
05/02/2006 10:08:34 PM (21 years ago)
Author:
ryan
Message:

nonce functions. #2678

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-compat.php

    r3689 r3758  
    9999}
    100100
     101// From php.net
     102if(!function_exists('http_build_query')) {
     103   function http_build_query( $formdata, $numeric_prefix = null, $key = null ) {
     104       $res = array();
     105       foreach ((array)$formdata as $k=>$v) {
     106           $tmp_key = urlencode(is_int($k) ? $numeric_prefix.$k : $k);
     107           if ($key) $tmp_key = $key.'['.$tmp_key.']';
     108           $res[] = ( ( is_array($v) || is_object($v) ) ? http_build_query($v, null, $tmp_key) : $tmp_key."=".urlencode($v) );
     109       }
     110       $separator = ini_get('arg_separator.output');
     111       return implode($separator, $res);
     112   }
     113}
    101114?>
Note: See TracChangeset for help on using the changeset viewer.