IXR_Error
- Since
- 1.5.0
- Source
wp-includes/IXR/class-IXR-error.php:9
IXR_Error
Compatibility
- WordPress
- since 1.5.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Properties · 2
$codepublic$messagepublic
Methods · 3
- __construct()PHP5 constructor.
- IXR_Error()PHP4 constructor.
- getXml()
Source code
class IXR_Error{ var $code; var $message; /** * PHP5 constructor. */ function __construct( $code, $message ) { $this->code = $code; $this->message = htmlspecialchars($message); } /** * PHP4 constructor. */ public function IXR_Error( $code, $message ) { self::__construct( $code, $message ); } function getXml() { $xml = <<<EOD<methodResponse> <fault> <value> <struct> <member> <name>faultCode</name> <value><int>{$this->code}</int></value> </member> <member> <name>faultString</name> <value><string>{$this->message}</string></value> </member> </struct> </value> </fault></methodResponse> EOD; return $xml; }}Changelog
Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/IXR/class-IXR-error.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.