Changeset 36132
- Timestamp:
- 12/31/2015 04:05:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-IXR.php
r35509 r36132 202 202 var $_currentTag; 203 203 var $_currentTagContents; 204 var $_valueHasType = false;205 204 // The XML parser 206 205 var $_parser; … … 326 325 $this->_arraystructs[] = array(); 327 326 break; 328 case 'value':329 $this->_valueHasType = false;330 327 } 331 328 } … … 359 356 case 'value': 360 357 // "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; 363 360 $valueFlag = true; 364 361 } … … 391 388 392 389 if ($valueFlag) { 393 $this->_valueHasType = true;394 395 390 if (count($this->_arraystructs) > 0) { 396 391 // Add value to struct or array
Note: See TracChangeset
for help on using the changeset viewer.