wp/wp-includes/IXR/class-IXR-client.php
changeset 16 a86126ab1dd4
parent 7 cf61fcea0001
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    56 	 */
    56 	 */
    57 	public function IXR_Client( $server, $path = false, $port = 80, $timeout = 15 ) {
    57 	public function IXR_Client( $server, $path = false, $port = 80, $timeout = 15 ) {
    58 		self::__construct( $server, $path, $port, $timeout );
    58 		self::__construct( $server, $path, $port, $timeout );
    59 	}
    59 	}
    60 
    60 
    61     function query()
    61 	/**
       
    62 	 * @since 1.5.0
       
    63 	 * @since 5.5.0 Formalized the existing `...$args` parameter by adding it
       
    64 	 *              to the function signature.
       
    65 	 *
       
    66 	 * @return bool
       
    67 	 */
       
    68     function query( ...$args )
    62     {
    69     {
    63         $args = func_get_args();
       
    64         $method = array_shift($args);
    70         $method = array_shift($args);
    65         $request = new IXR_Request($method, $args);
    71         $request = new IXR_Request($method, $args);
    66         $length = $request->getLength();
    72         $length = $request->getLength();
    67         $xml = $request->getXml();
    73         $xml = $request->getXml();
    68         $r = "\r\n";
    74         $r = "\r\n";