protected function _relative_path_to_url( $path, $content ) {
		if ( wp_http_validate_url( $path ) ) {
			return $path;
		}

		$permalink = $this->get_permalink();
		if ( ! $permalink ) {
			$permalink = $this->_get_permalink( $content );
		}

		preg_match( '/(https?:\/\/[^\/]+)/', $permalink, $reg );
		if ( empty( $reg[0] ) ) {
			return false;
		}

		return trailingslashit( $reg[0] ) . $path;
	}
protected function _relative_path_to_url( $path, $content ) {
		if ( wp_http_validate_url( $path ) ) {
			return $path;
		}

		$permalink = $this->get_permalink();
		if ( ! $permalink ) {
			$permalink = $this->_get_permalink( $content );
		}

		preg_match( '/(https?:\/\/[^\/]+)/', $permalink, $reg );
		if ( empty( $reg[0] ) ) {
			return false;
		}

		return trailingslashit( $reg[0] ) . $path;
	}
protected function _relative_path_to_url ( $ path , $ content ) { if ( wp_http_validate_url ( $ path ) ) { return $ path ; } $ permalink = $ this -> get_permalink ( ) ; if ( ! $ permalink ) { $ permalink = $ this -> _get_permalink ( $ content ) ; } preg_match ( '/(https?:\/\/[^\/]+)/' , $ permalink , $ reg ) ; if ( empty ( $ reg [ 0 ] ) ) { return false ; } return trailingslashit ( $ reg [ 0 ] ) . $ path ; }
Return url that converted from relative path

@param string $path
@param string $content
@return string
Return url that converted from relative path