File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ public static function should_do_page( $contains_flags, $match_flags ) {
26
26
}
27
27
28
28
$ 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.
32
32
if ( isset ( $ _SERVER ['HTTP_REFERER ' ] ) && $ _SERVER ['REQUEST_METHOD ' ] === 'POST ' ) {
33
33
$ check_against [] = $ _SERVER ['HTTP_REFERER ' ];
34
34
}
You can’t perform that action at this time.
0 commit comments