Make WordPress Core

Changeset 1034


Ignore:
Timestamp:
03/30/2004 09:25:21 PM (20 years ago)
Author:
michelvaldrighi
Message:

changing xmlrpc_encode to phpxmlrpc�_encode, xmlrpc_decode to phpxmlrpc_decode

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-xmlrpc.php

    r601 r1034  
    10561056* author: Dan Libby (dan@libby.com)                             *
    10571057****************************************************************/
    1058 if (!function_exists('xmlrpc_decode')) {
    1059     function xmlrpc_decode($xmlrpc_val) {
     1058if (!function_exists('phpxmlrpc_decode')) {
     1059    function phpxmlrpc_decode($xmlrpc_val) {
    10601060       $kind = $xmlrpc_val->kindOf();
    10611061
     
    10681068
    10691069          for($i = 0; $i < $size; $i++) {
    1070              $arr[]=xmlrpc_decode($xmlrpc_val->arraymem($i));
     1070             $arr[]=phpxmlrpc_decode($xmlrpc_val->arraymem($i));
    10711071          }
    10721072          return $arr;
     
    10771077
    10781078          while(list($key,$value)=$xmlrpc_val->structeach()) {
    1079              $arr[$key] = xmlrpc_decode($value);
     1079             $arr[$key] = phpxmlrpc_decode($value);
    10801080          }
    10811081          return $arr;
     
    10961096* author: Dan Libby (dan@libby.com)                             *
    10971097****************************************************************/
    1098 if (!function_exists('xmlrpc_encode')) {
    1099     function xmlrpc_encode($php_val) {
     1098if (!function_exists('phpxmlrpc_encode')) {
     1099    function phpxmlrpc_encode($php_val) {
    11001100       global $xmlrpcInt;
    11011101       global $xmlrpcDouble;
     
    11131113             $arr = array();
    11141114             while (list($k,$v) = each($php_val)) {
    1115                 $arr[$k] = xmlrpc_encode($v);
     1115                $arr[$k] = phpxmlrpc_encode($v);
    11161116             }
    11171117             $xmlrpc_val->addStruct($arr);
  • trunk/wp-includes/functions.php

    r1017 r1034  
    580580  }
    581581
    582   $v=@xmlrpc_decode($r->value());
     582  $v = @phpxmlrpc_decode($r->value());
    583583  if (!$r->faultCode()) {
    584584    $result['message'] =  "<p class=\"rpcmsg\">";
Note: See TracChangeset for help on using the changeset viewer.