From 9db06ff90ea524987ceb118f4fcaed16ff5f6b93 Mon Sep 17 00:00:00 2001 From: nfmohit Date: Tue, 19 Mar 2024 05:56:40 +0600 Subject: [PATCH] Add sanitization for `adsConversionIDMigratedAtMs`. --- includes/Modules/Analytics_4/Settings.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/Modules/Analytics_4/Settings.php b/includes/Modules/Analytics_4/Settings.php index b35e5eaf8b6..c4c2428e182 100644 --- a/includes/Modules/Analytics_4/Settings.php +++ b/includes/Modules/Analytics_4/Settings.php @@ -168,6 +168,12 @@ function( $dimension ) { $option['adSenseLinkedLastSyncedAt'] = 0; } } + + if ( isset( $option['adsConversionIDMigratedAtMs'] ) ) { + if ( ! is_int( $option['adsConversionIDMigratedAtMs'] ) ) { + $option['adsConversionIDMigratedAtMs'] = 0; + } + } } return $option;