From 600777266cb7ce775edbc2f140cbde7b9718190f Mon Sep 17 00:00:00 2001 From: Claudiu Lodromanean Date: Fri, 14 Nov 2025 15:58:37 -0800 Subject: [PATCH 1/2] Use break instead of return --- includes/tracking/class-pixel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/tracking/class-pixel.php b/includes/tracking/class-pixel.php index 38aed2a73..8e8a335b9 100644 --- a/includes/tracking/class-pixel.php +++ b/includes/tracking/class-pixel.php @@ -196,7 +196,7 @@ public static function bulk_track_seen( $events ) { // Bail if tracking ID mismatch. if ( $newsletter_tracking_id !== $tracking_id ) { - return; + break; } $pixel_seen = \get_post_meta( $newsletter_id, 'tracking_pixel_seen', true ); From 3e92957bc88d9c243f5c2eaac8540d25aa9a2140 Mon Sep 17 00:00:00 2001 From: Claudiu Lodromanean Date: Fri, 21 Nov 2025 09:26:21 -0800 Subject: [PATCH 2/2] Use continue instead of break --- includes/tracking/class-pixel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/tracking/class-pixel.php b/includes/tracking/class-pixel.php index 8e8a335b9..28ece55cb 100644 --- a/includes/tracking/class-pixel.php +++ b/includes/tracking/class-pixel.php @@ -196,7 +196,7 @@ public static function bulk_track_seen( $events ) { // Bail if tracking ID mismatch. if ( $newsletter_tracking_id !== $tracking_id ) { - break; + continue; } $pixel_seen = \get_post_meta( $newsletter_id, 'tracking_pixel_seen', true );