Changeset 1034
- Timestamp:
- 03/30/2004 09:25:21 PM (21 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-xmlrpc.php
r601 r1034 1056 1056 * author: Dan Libby (dan@libby.com) * 1057 1057 ****************************************************************/ 1058 if (!function_exists(' xmlrpc_decode')) {1059 function xmlrpc_decode($xmlrpc_val) {1058 if (!function_exists('phpxmlrpc_decode')) { 1059 function phpxmlrpc_decode($xmlrpc_val) { 1060 1060 $kind = $xmlrpc_val->kindOf(); 1061 1061 … … 1068 1068 1069 1069 for($i = 0; $i < $size; $i++) { 1070 $arr[]= xmlrpc_decode($xmlrpc_val->arraymem($i));1070 $arr[]=phpxmlrpc_decode($xmlrpc_val->arraymem($i)); 1071 1071 } 1072 1072 return $arr; … … 1077 1077 1078 1078 while(list($key,$value)=$xmlrpc_val->structeach()) { 1079 $arr[$key] = xmlrpc_decode($value);1079 $arr[$key] = phpxmlrpc_decode($value); 1080 1080 } 1081 1081 return $arr; … … 1096 1096 * author: Dan Libby (dan@libby.com) * 1097 1097 ****************************************************************/ 1098 if (!function_exists(' xmlrpc_encode')) {1099 function xmlrpc_encode($php_val) {1098 if (!function_exists('phpxmlrpc_encode')) { 1099 function phpxmlrpc_encode($php_val) { 1100 1100 global $xmlrpcInt; 1101 1101 global $xmlrpcDouble; … … 1113 1113 $arr = array(); 1114 1114 while (list($k,$v) = each($php_val)) { 1115 $arr[$k] = xmlrpc_encode($v);1115 $arr[$k] = phpxmlrpc_encode($v); 1116 1116 } 1117 1117 $xmlrpc_val->addStruct($arr); -
trunk/wp-includes/functions.php
r1017 r1034 580 580 } 581 581 582 $v =@xmlrpc_decode($r->value());582 $v = @phpxmlrpc_decode($r->value()); 583 583 if (!$r->faultCode()) { 584 584 $result['message'] = "<p class=\"rpcmsg\">";
Note: See TracChangeset
for help on using the changeset viewer.