wpsc_parse_partial_url()WPSCache 1.0

Parse a partial URL (only the path and query components).

No Hooks.

Return

null. Nothing (null).

Usage

wpsc_parse_partial_url( $partial_uri );
$partial_uri(string) (required)
- The path and query component of a URI to parse.

wpsc_parse_partial_url() code WPSCache 1.12.0

function wpsc_parse_partial_url( $partial_uri ) {
	global $WPSC_HTTP_HOST;

	$scheme = wpsc_is_https() ? 'https://' : 'http://';
	return parse_url( $scheme . $WPSC_HTTP_HOST . $partial_uri );
}