diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-includes/IXR/class-IXR-request.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-includes/IXR/class-IXR-request.php Mon Oct 14 17:39:30 2019 +0200 @@ -0,0 +1,54 @@ +method = $method; + $this->args = $args; + $this->xml = << + +{$this->method} + + +EOD; + foreach ($this->args as $arg) { + $this->xml .= ''; + $v = new IXR_Value($arg); + $this->xml .= $v->getXml(); + $this->xml .= "\n"; + } + $this->xml .= ''; + } + + /** + * PHP4 constructor. + */ + public function IXR_Request( $method, $args ) { + self::__construct( $method, $args ); + } + + function getLength() + { + return strlen($this->xml); + } + + function getXml() + { + return $this->xml; + } +}