wp-includes/IXR/class-IXR-value.php:42 function calculateType() { if ($this->data === true || $this->data === false) { return 'boolean'; } if (is_int($this->data)) { return 'int'; } if (is_float($this->data)) { return 'double'; } // Deal with IXR object types base64 and date if (is_object($this->data) && is_a($this->data, 'IXR_Date')) { return 'date'; } if (is_object($this->data) && is_a($this->data, 'IXR_Base64')) { return 'base64'; } // If it is a normal PHP object convert it in to a struct if (is_object($this->data)) { $this->data = get_object_vars($this->data); return 'struct'; } if (!is_array($this->data)) { return 'string'; } // We have an array - is it an array or a struct? if ($this->isStruct($this->data)) { return 'struct'; } else { return 'array'; } }Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/IXR/class-IXR-value.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.