PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 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 All 256 releases
← All changes | src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php +4 -2 4.16.8 → 4.17.0 View file →
@@ -333,12 +333,13 @@
333 333 return DonationForm::find($formId);
334 334 }
335 335
336 336 /**
337 + * @since 4.17.0 Declare the nullable parameter explicitly.
337 338 * @since 4.16.8 Apply legacy tags before donor-supplied V3 tag values.
338 339 * @since 3.0.0
339 340 */
340 - protected function getHeading(DonationReceipt $receipt, DonationForm $donationForm = null): string
341 + protected function getHeading(DonationReceipt $receipt, ?DonationForm $donationForm = null): string
341 342 {
342 343 if (!$donationForm) {
343 344 $content = __("Hey {first_name}, thanks for your donation!", 'give');
344 345 } else {
@@ -351,12 +352,13 @@
351 352 ))->getContent();
352 353 }
353 354
354 355 /**
356 + * @since 4.17.0 Declare the nullable parameter explicitly.
355 357 * @since 4.16.8 Apply legacy tags before donor-supplied V3 tag values.
356 358 * @since 3.0.0
357 359 */
358 - protected function getDescription(DonationReceipt $receipt, DonationForm $donationForm = null): string
360 + protected function getDescription(DonationReceipt $receipt, ?DonationForm $donationForm = null): string
359 361 {
360 362 if (!$donationForm) {
361 363 $content = __(
362 364 "{first_name}, your contribution means a lot and will be put to good use in making a difference. We’ve sent your donation receipt to {email}.",