From e8abc1689a1b20fc08777d34b4bb85d7b39d898c Mon Sep 17 00:00:00 2001 From: dkoo Date: Tue, 12 Nov 2024 16:01:15 -0700 Subject: [PATCH] fix: ensure localized segments object is an object, not array --- includes/class-newspack-popups-inserter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-newspack-popups-inserter.php b/includes/class-newspack-popups-inserter.php index a5ca8fa8..2d8518b3 100755 --- a/includes/class-newspack-popups-inserter.php +++ b/includes/class-newspack-popups-inserter.php @@ -690,7 +690,7 @@ public static function enqueue_scripts() { } } - $script_data['segments'] = self::$segments; + $script_data['segments'] = (object) self::$segments; } $donor_landing_page = Newspack_Popups_Settings::donor_landing_page();