Changeset 36133
- Timestamp:
- 12/31/2015 04:06:16 AM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-includes/class-IXR.php
r35509 r36133 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.