Skip to content

Commit

Permalink
fix: ensure localized segments object is an object, not array
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Nov 12, 2024
1 parent 50c55c7 commit e8abc16
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 e8abc16

Please sign in to comment.