Skip to content

Commit

Permalink
[not verified] Avoid using QUERY_STRING as its support isn't guarante…
Browse files Browse the repository at this point in the history
…ed everywhere; stick to the new wpsc_parse_partial_url method

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/3066301222
  • Loading branch information
thingalon authored and matticbot committed Sep 16, 2022
1 parent aab21bd commit 0ba03c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-cache-phase2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,8 @@ function wpsc_is_get_query() {
static $is_get_query = null;

if ( null === $is_get_query ) {
$is_get_query = ! empty( $_SERVER['QUERY_STRING'] );
$request_uri = wpsc_parse_partial_url( $_SERVER['REQUEST_URI'] );
$is_get_query = $request_uri && ! empty( $request_uri['query'] );
}

return $is_get_query;
Expand Down

0 comments on commit 0ba03c2

Please sign in to comment.