Ticket #16980: 16980.diff
File 16980.diff, 1.4 KB (added by , 14 years ago) |
---|
-
wp-includes/class-IXR.php
191 191 var $_value; 192 192 var $_currentTag; 193 193 var $_currentTagContents; 194 var $_valueHasType = false; 194 195 // The XML parser 195 196 var $_parser; 196 197 … … 259 260 $this->_arraystructstypes[] = 'struct'; 260 261 $this->_arraystructs[] = array(); 261 262 break; 263 case 'value': 264 $this->_valueHasType = false; 262 265 } 263 266 } 264 267 … … 290 293 break; 291 294 case 'value': 292 295 // "If no type is indicated, the type is string." 293 if ( trim($this->_currentTagContents) != '') {294 $value = (string)$this->_currentTagContents;296 if ( !$this->_valueHasType ) { 297 $value = trim( $this->_currentTagContents ); 295 298 $valueFlag = true; 296 299 } 297 300 break; … … 322 325 } 323 326 324 327 if ($valueFlag) { 328 $this->_valueHasType = true; 329 325 330 if (count($this->_arraystructs) > 0) { 326 331 // Add value to struct or array 327 332 if ($this->_arraystructstypes[count($this->_arraystructstypes)-1] == 'struct') {