PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | src/Campaigns/Blocks/CampaignDonors/CampaignDonorsBlockViewModel.php +4 -0 4.16.54.16.9 View file →
@@ -49,8 +49,9 @@
49 49 }
50 50
51 51
52 52 /**
53 + * @since 4.16.9 Added additional sanitization to donor data.
53 54 * @since 4.14.0 add avatar URL to donors data
54 55 * @since 4.0.0
55 56 */
56 57 private function formatDonorsData(array $donors): array
@@ -55,8 +56,11 @@
55 56 */
56 57 private function formatDonorsData(array $donors): array
57 58 {
58 59 return array_map(static function ($entry) {
60 + $entry->name = give_strip_shortcodes_deep($entry->name ?? '');
61 + $entry->company = give_strip_shortcodes_deep($entry->company ?? '');
62 +
59 63 if (isset($entry->date)) {
60 64 $entry->date = human_time_diff(strtotime($entry->date));
61 65 }
62 66 $entry->amount = Money::fromDecimal($entry->amount, give_get_currency());