Skip to content

Commit

Permalink
Add sanitization for adsConversionIDMigratedAtMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfmohit committed Mar 18, 2024
1 parent 9670f4d commit 9db06ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/Modules/Analytics_4/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ function( $dimension ) {
$option['adSenseLinkedLastSyncedAt'] = 0;
}
}

if ( isset( $option['adsConversionIDMigratedAtMs'] ) ) {
if ( ! is_int( $option['adsConversionIDMigratedAtMs'] ) ) {
$option['adsConversionIDMigratedAtMs'] = 0;
}
}
}

return $option;
Expand Down

0 comments on commit 9db06ff

Please sign in to comment.