Make WordPress Core

Changeset 36132


Ignore:
Timestamp:
12/31/2015 04:05:22 AM (9 years ago)
Author:
dd32
Message:

XMLRPC: Revert [35509] which caused a change of behviour in at least one XMLRPC client.

XMLRPC has many quirks in it's operation, #16980 being just one of the many, #35185 just became yet another quirk.

See #16980.
Fixes #35185.

File:
1 edited

Legend:

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

    r35509 r36132  
    202202    var $_currentTag;
    203203    var $_currentTagContents;
    204     var $_valueHasType = false;
    205204    // The XML parser
    206205    var $_parser;
     
    326325                $this->_arraystructs[] = array();
    327326                break;
    328             case 'value':
    329                 $this->_valueHasType = false;
    330327        }
    331328    }
     
    359356            case 'value':
    360357                // "If no type is indicated, the type is string."
    361                 if ( !$this->_valueHasType ) {
    362                     $value = trim( $this->_currentTagContents );
     358                if (trim($this->_currentTagContents) != '') {
     359                    $value = (string)$this->_currentTagContents;
    363360                    $valueFlag = true;
    364361                }
     
    391388
    392389        if ($valueFlag) {
    393             $this->_valueHasType = true;
    394                
    395390            if (count($this->_arraystructs) > 0) {
    396391                // Add value to struct or array
Note: See TracChangeset for help on using the changeset viewer.