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();