Skip to content

Commit 369acaa

Browse files
committed
fix type in comment
1 parent 72acd4c commit 369acaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inc/filters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public static function should_do_page( $contains_flags, $match_flags ) {
2626
}
2727

2828
$check_against = [ $_SERVER['REQUEST_URI'] ];
29-
// This logic is implemented to target ajax requests withing excluded pages.
30-
// The ajax request will have the referer set to the page url and is using a POST request.
31-
// If is using a GET request, this can be targeted with the availabile excluding rules.
29+
// This code is designed to handle ajax requests on pages that are excluded.
30+
// For ajax requests, the referer is set to the page URL and they use a POST method.
31+
// If an ajax request uses a GET method, it can be managed using the available exclusion rules.
3232
if ( isset( $_SERVER['HTTP_REFERER'] ) && $_SERVER['REQUEST_METHOD'] === 'POST' ) {
3333
$check_against[] = $_SERVER['HTTP_REFERER'];
3434
}

0 commit comments

Comments
 (0)