Jetpack::post_login_form_to_signed_url PHP Method

post_login_form_to_signed_url() public method

Make sure the login form is POSTed to the signed URL so we can reverify the request
public post_login_form_to_signed_url ( $url, $path, $scheme )
    function post_login_form_to_signed_url($url, $path, $scheme)
    {
        if ('wp-login.php' !== $path || 'login_post' !== $scheme && 'login' !== $scheme) {
            return $url;
        }
        $parsed_url = parse_url($url);
        $url = strtok($url, '?');
        $url = "{$url}?{$_SERVER['QUERY_STRING']}";
        if (!empty($parsed_url['query'])) {
            $url .= "&{$parsed_url['query']}";
        }
        return $url;
    }
Jetpack