Changeset 35509
- Timestamp:
- 11/04/2015 06:07:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-IXR.php
r35364 r35509 202 202 var $_currentTag; 203 203 var $_currentTagContents; 204 var $_valueHasType = false; 204 205 // The XML parser 205 206 var $_parser; … … 325 326 $this->_arraystructs[] = array(); 326 327 break; 328 case 'value': 329 $this->_valueHasType = false; 327 330 } 328 331 } … … 356 359 case 'value': 357 360 // "If no type is indicated, the type is string." 358 if ( trim($this->_currentTagContents) != '') {359 $value = (string)$this->_currentTagContents;361 if ( !$this->_valueHasType ) { 362 $value = trim( $this->_currentTagContents ); 360 363 $valueFlag = true; 361 364 } … … 388 391 389 392 if ($valueFlag) { 393 $this->_valueHasType = true; 394 390 395 if (count($this->_arraystructs) > 0) { 391 396 // Add value to struct or array
Note: See TracChangeset
for help on using the changeset viewer.