From 194dd533a9f259aab3d607c656af5ec19b35574c Mon Sep 17 00:00:00 2001 From: Paulo Iankoski Date: Mon, 3 Jun 2024 18:46:29 -0300 Subject: [PATCH] chore: prepare release 3.12.1 --- give.php | 4 ++-- includes/admin/tools/export/export-functions.php | 2 +- .../admin/tools/export/give-export-donations-exporter.php | 6 +++--- .../tools/export/give-export-donations-functions.php | 2 +- readme.txt | 8 +++++++- src/API/Endpoints/Logs/GetLogs.php | 2 +- src/DonationForms/Repositories/DonationFormRepository.php | 2 +- src/Exports/DonorsExport.php | 4 ++-- .../StripePaymentElementGateway.php | 2 +- .../stripePaymentElementGateway.tsx | 4 ++-- .../Gateways/Stripe/Traits/CheckoutRedirect.php | 2 +- .../TestStripePaymentElementGateway.php | 2 +- .../Repositories/TestDonationFormRepository.php | 4 ++-- 13 files changed, 25 insertions(+), 19 deletions(-) diff --git a/give.php b/give.php index 4a5ef8216e..581e10c560 100644 --- a/give.php +++ b/give.php @@ -6,7 +6,7 @@ * Description: The most robust, flexible, and intuitive way to accept donations on WordPress. * Author: GiveWP * Author URI: https://givewp.com/ - * Version: 3.12.0 + * Version: 3.12.1 * Requires at least: 6.3 * Requires PHP: 7.2 * Text Domain: give @@ -404,7 +404,7 @@ private function setup_constants() { // Plugin version. if (!defined('GIVE_VERSION')) { - define('GIVE_VERSION', '3.12.0'); + define('GIVE_VERSION', '3.12.1'); } // Plugin Root File. diff --git a/includes/admin/tools/export/export-functions.php b/includes/admin/tools/export/export-functions.php index 69b2f46783..861085d305 100755 --- a/includes/admin/tools/export/export-functions.php +++ b/includes/admin/tools/export/export-functions.php @@ -142,7 +142,7 @@ function give_do_ajax_export() { * Note: This function is for internal purposes only. * Use filter "give_export_donors_get_default_columns" instead. * - * @unreleased add donor_phone_number column. + * @since 3.12.1 add donor_phone_number column. * @since 2.2.6 * * @return array diff --git a/includes/admin/tools/export/give-export-donations-exporter.php b/includes/admin/tools/export/give-export-donations-exporter.php index c2f85dddb9..fd839c3bcb 100644 --- a/includes/admin/tools/export/give-export-donations-exporter.php +++ b/includes/admin/tools/export/give-export-donations-exporter.php @@ -157,7 +157,7 @@ public function csv_cols() { /** * CSV file columns. * - * @unreleased add phone column. + * @since 3.12.1 add phone column. * @since 2.1 * * @param array $columns @@ -318,7 +318,7 @@ public function get_donation_argument( $args = array() ) { * * @access public * - * @unreleased add donor phone. + * @since 3.12.1 add donor phone. * @since 2.1 * * @global object $wpdb Used to query the database using the WordPress database API. @@ -683,7 +683,7 @@ public function print_csv_rows() { * Escapes CSV cell data to protect against CSV injection. * @link https://owasp.org/www-community/attacks/CSV_Injection * - * @unreleased sanitize + prefix + * @since 3.12.1 sanitize + prefix * @since 2.25.2 * * @param mixed|string $cellData diff --git a/includes/admin/tools/export/give-export-donations-functions.php b/includes/admin/tools/export/give-export-donations-functions.php index 317094d9f7..3fef1032fc 100644 --- a/includes/admin/tools/export/give-export-donations-functions.php +++ b/includes/admin/tools/export/give-export-donations-functions.php @@ -229,7 +229,7 @@ function give_export_donation_form_search_args( $args ) { /** * Add Donation standard fields in export donation page * - * @unreleased add Donor Phone Number to donor fields. + * @since 3.12.1 add Donor Phone Number to donor fields. * @since 2.1 */ function give_export_donation_standard_fields() { diff --git a/readme.txt b/readme.txt index 96fcd73c30..21ccb9af11 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding Requires at least: 6.3 Tested up to: 6.5 Requires PHP: 7.2 -Stable tag: 3.12.0 +Stable tag: 3.12.1 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -262,6 +262,12 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri 10. Use almost any payment gateway integration with GiveWP through our add-ons or by creating your own add-on. == Changelog == += 3.12.1: June 5th, 2024 = +* Fix: Resolved an issue where the Donor Phone field was not included in the donor export +* Fix: Resolved an issue where the Billing Address field was not saved in Stripe +* Security: Added additional escaping to Stripe onboarding +* Dev: Added a new filter `givewp_log_source_view` to allow customization of the log source column + = 3.12.0: May 15th, 2024 = * New: Updated the donation amount block with options for donation amount level description in the visual form builder * New: Updated form goal settings with options for start and end dates in the visual form builder diff --git a/src/API/Endpoints/Logs/GetLogs.php b/src/API/Endpoints/Logs/GetLogs.php index 3c6df0e870..fca4679421 100644 --- a/src/API/Endpoints/Logs/GetLogs.php +++ b/src/API/Endpoints/Logs/GetLogs.php @@ -142,7 +142,7 @@ public function getSchema() } /** - * @unreleased Add 'givewp_log_source_view' filter + * @since 3.12.1 Add 'givewp_log_source_view' filter * * @param WP_REST_Request $request * diff --git a/src/DonationForms/Repositories/DonationFormRepository.php b/src/DonationForms/Repositories/DonationFormRepository.php index bae1625f7a..e508be8757 100644 --- a/src/DonationForms/Repositories/DonationFormRepository.php +++ b/src/DonationForms/Repositories/DonationFormRepository.php @@ -265,7 +265,7 @@ private function validateProperties(DonationForm $donationForm) } /** - * @unreleased Prevent returning forms without the "formBuilderSettings" and "formBuilderFields" meta keys + * @since 3.12.1 Prevent returning forms without the "formBuilderSettings" and "formBuilderFields" meta keys * @since 3.0.0 * * @return ModelQueryBuilder diff --git a/src/Exports/DonorsExport.php b/src/Exports/DonorsExport.php index 3330eb6ec0..67fff3a8b9 100644 --- a/src/Exports/DonorsExport.php +++ b/src/Exports/DonorsExport.php @@ -54,7 +54,7 @@ public function set_properties($request) } /** - * @unreleased Include donor phone. + * @since 3.12.1 Include donor phone. * @since 2.29.0 Include donor created date * @since 2.21.2 * @since 3.3.0 Filter donors by form ID @@ -157,7 +157,7 @@ protected function filterExportData(array $exportData): array } /** - * @unreleased Include donor_phone_number col. + * @since 3.12.1 Include donor_phone_number col. * @since 2.29.0 Include donor created col * @since 2.21.2 */ diff --git a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php index 48b97e2a6e..7a7443173b 100644 --- a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php +++ b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php @@ -89,7 +89,7 @@ public function formSettings(int $formId): array } /** - * @unreleased updated to send billing address details to Stripe + * @since 3.12.1 updated to send billing address details to Stripe * @since 3.0.0 * @inheritDoc * @throws ApiErrorException diff --git a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/stripePaymentElementGateway.tsx b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/stripePaymentElementGateway.tsx index ae9478a996..aab3960b62 100644 --- a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/stripePaymentElementGateway.tsx +++ b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/stripePaymentElementGateway.tsx @@ -90,7 +90,7 @@ interface StripeGateway extends Gateway { } /** - * @unreleased updated afterCreatePayment response type to include billing details address + * @since 3.12.1 updated afterCreatePayment response type to include billing details address * @since 3.0.0 */ const stripePaymentElementGateway: StripeGateway = { @@ -146,7 +146,7 @@ const stripePaymentElementGateway: StripeGateway = { line2?: string; postal_code?: string; state?: string; - } + }; }; }; }): Promise { diff --git a/src/PaymentGateways/Gateways/Stripe/Traits/CheckoutRedirect.php b/src/PaymentGateways/Gateways/Stripe/Traits/CheckoutRedirect.php index 670ea0396d..f2ef1a37c1 100644 --- a/src/PaymentGateways/Gateways/Stripe/Traits/CheckoutRedirect.php +++ b/src/PaymentGateways/Gateways/Stripe/Traits/CheckoutRedirect.php @@ -27,7 +27,7 @@ public function getRedirectUrl( $sessionId, $formId ) } /** - * @unreleased add esc_attr to $session_id + * @since 3.12.1 add esc_attr to $session_id * @since 2.5.5 * @since 2.19.0 Migrated from the legacy Give_Stripe_Checkout::redirect_to_checkout implementation of the Stripe Checkout Gateway. * @return void diff --git a/tests/Feature/Gateways/Stripe/StripePaymentElement/TestStripePaymentElementGateway.php b/tests/Feature/Gateways/Stripe/StripePaymentElement/TestStripePaymentElementGateway.php index c2133aa0e6..b181c467d6 100644 --- a/tests/Feature/Gateways/Stripe/StripePaymentElement/TestStripePaymentElementGateway.php +++ b/tests/Feature/Gateways/Stripe/StripePaymentElement/TestStripePaymentElementGateway.php @@ -57,7 +57,7 @@ public function testFormSettingsShouldReturnData() } /** - * @unreleased updated to send billing address details to Stripe + * @since 3.12.1 updated to send billing address details to Stripe * @since 3.0.0 * * @throws \Give\Framework\Exceptions\Primitives\Exception diff --git a/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php b/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php index ce3ae49e23..143f7e6443 100644 --- a/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php +++ b/tests/Unit/DonationForms/Repositories/TestDonationFormRepository.php @@ -378,7 +378,7 @@ public function testShouldGetTotalRevenueFromSubscriptions(): void } /** - * @unreleased + * @since 3.12.1 * * @throws Exception */ @@ -393,7 +393,7 @@ public function testShouldNotReturnDonationFormWithoutSettingsMetaKey() } /** - * @unreleased + * @since 3.12.1 * * @throws Exception */