/**
* @since 3.1.0
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
* to the function signature.
*
* @return bool
*/
public function query( ...
$args ) { $method =
array_shift( $args );
$request =
new IXR_Request( $method,
$args );
$xml =
$request->
getXml();
$port =
$this->port ? ":
$this->port" : '';
$url =
$this->scheme . '://' .
$this->server .
$port .
$this->path;
$args = array
( 'headers' => array
( 'Content-Type' => 'text/xml'
),
'user-agent' =>
$this->useragent,
'body' =>
$xml,
);
// Merge Custom headers ala #8145.