wp/wp-includes/class-wp-http-ixr-client.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    11 	 * @var IXR_Error
    11 	 * @var IXR_Error
    12 	 */
    12 	 */
    13 	public $error;
    13 	public $error;
    14 
    14 
    15 	/**
    15 	/**
    16 	 * @param string      $server
    16 	 * @param string       $server
    17 	 * @param string|bool $path
    17 	 * @param string|false $path
    18 	 * @param int|bool    $port
    18 	 * @param int|false    $port
    19 	 * @param int         $timeout
    19 	 * @param int          $timeout
    20 	 */
    20 	 */
    21 	public function __construct( $server, $path = false, $port = false, $timeout = 15 ) {
    21 	public function __construct( $server, $path = false, $port = false, $timeout = 15 ) {
    22 		if ( ! $path ) {
    22 		if ( ! $path ) {
    23 			// Assume we have been given a URL instead.
    23 			// Assume we have been given a URL instead.
    24 			$bits         = parse_url( $server );
    24 			$bits         = parse_url( $server );