Changeset 6070
- Timestamp:
- 09/10/2007 03:53:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/compat.php
r6069 r6070 108 108 function _http_build_query($data, $prefix=null, $sep=null, $key='', $urlencode=true) { 109 109 $ret = array(); 110 if ( $urlencode ) { 111 $lsb = '%5B'; 112 $rsb = '%5D'; 113 } else { 114 $lsb = '['; 115 $rsb = ']'; 116 } 110 117 111 foreach ( (array) $data as $k => $v ) { 118 112 if ( $urlencode) … … 121 115 $k = $prefix.$k; 122 116 if ( !empty($key) ) 123 $k = $key . $lsb . $k . $rsb;117 $k = $key . '%5B' . $k . '%5D'; 124 118 if ( $v === NULL ) 125 119 continue;
Note: See TracChangeset
for help on using the changeset viewer.