diff options
Diffstat (limited to 'plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php')
-rw-r--r-- | plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php b/plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php index daa369b1..896f194b 100644 --- a/plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php +++ b/plugins/jetpack/modules/google-analytics/classes/class-jetpack-google-amp-analytics.php @@ -118,7 +118,7 @@ class Jetpack_Google_AMP_Analytics { * Send the stored events to GA. */ public function amp_send_ga_events() { - if ( 'GET' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { + if ( ! isset( $_SERVER['REQUEST_METHOD'] ) || 'GET' !== strtoupper( $_SERVER['REQUEST_METHOD'] ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash -- Simple comparison return; } |