Skip to content

Commit

Permalink
fix: ensure localized segments object is an object, not array (#1364)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Nov 13, 2024
1 parent 50c55c7 commit 3b2403f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-newspack-popups-inserter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3b2403f

Please sign in to comment.