From 8a2feef545bb9ada6b348104fbe150bb19821061 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Thu, 8 Feb 2024 16:10:47 -0500 Subject: [PATCH] chore: prepare for release 3.4.0 --- give.php | 6 +++--- includes/install.php | 2 +- includes/shortcodes.php | 4 ++-- readme.txt | 20 ++++++++++++++++++- .../ConvertDonationFormBlocksToFieldsApi.php | 2 +- .../Controllers/BlockRenderController.php | 2 +- .../resources/app/Components/ModalForm.tsx | 2 +- .../DonationFormBlock/resources/app/index.tsx | 6 +++--- .../Controllers/DonateController.php | 10 +++++----- ...ationConfirmationReceiptViewController.php | 2 +- .../Listeners/StoreCustomFields.php | 2 +- src/DonationForms/Properties/FormSettings.php | 12 +++++------ .../ValueObjects/DesignSettingsImageStyle.php | 2 +- .../DesignSettingsLogoPosition.php | 2 +- .../DesignSettingsSectionStyle.php | 2 +- .../DesignSettingsTextFieldStyle.php | 2 +- .../ViewModels/DonationFormViewModel.php | 2 +- .../MultiStepForm/components/StepsWrapper.tsx | 2 +- .../app/form/MultiStepForm/store/index.tsx | 2 +- .../app/utilities/setDesignSettings.ts | 4 ++-- .../templates/groups/BillingAddress.tsx | 4 ++-- .../templates/layouts/DonationReceipt.tsx | 2 +- .../templates/layouts/HeaderTextWrapper.tsx | 2 +- src/Donations/Endpoints/ListDonations.php | 6 +++--- .../settings/DesignSettings/index.tsx | 2 +- .../src/components/sidebar/Design.tsx | 2 +- .../components/sidebar/TabSelector/index.tsx | 2 +- .../header-with-image-settings/index.tsx | 2 +- .../design/general-controls/index.tsx | 2 +- .../general-controls/input-fields/index.tsx | 2 +- .../src/settings/design/index.tsx | 2 +- .../settings/design/style-controls/index.tsx | 2 +- src/FormMigration/FormMetaDecorator.php | 18 ++++++++--------- src/FormMigration/Steps/GiftAid.php | 2 +- .../GenerateConfirmationPageReceipt.php | 2 +- src/Helpers/Frontend/Shortcode.php | 6 +++--- .../Adapters/LegacyPaymentGatewayAdapter.php | 12 +++++------ .../Migrations/SetPayPalStandardGatewayId.php | 2 +- .../PayPalCommerce/ScriptLoader.php | 2 +- .../NewStripeAccountOnBoardingController.php | 4 ++-- templates/shortcode-receipt.php | 2 +- .../Controllers/TestMigrationController.php | 6 +++--- .../FormMigration/Steps/TestDonationGoal.php | 4 ++-- .../Steps/TestDonationOptions.php | 6 +++--- .../FormMigration/TestFormMetaDecorator.php | 18 ++++++++--------- .../TestTraits/LegacyDonationFormAdapter.php | 2 +- .../TestGenerateConfirmationPageReceipt.php | 2 +- 47 files changed, 112 insertions(+), 94 deletions(-) diff --git a/give.php b/give.php index b01b24f07c..5e20df301a 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.3.1 + * Version: 3.4.0 * Requires at least: 6.0 * Requires PHP: 7.2 * Text Domain: give @@ -403,7 +403,7 @@ private function setup_constants() { // Plugin version. if (!defined('GIVE_VERSION')) { - define('GIVE_VERSION', '3.3.1'); + define('GIVE_VERSION', '3.4.0'); } // Plugin Root File. @@ -497,7 +497,7 @@ public function display_old_recurring_compatibility_notice() * * Runs on plugin activation and performs initial setup. * - * @unreleased check if installing in WP multisite + * @since 3.4.0 check if installing in WP multisite * @since 2.33.3 set network_wide parameter to true, enabling installing in WP multisite * @since 1.0.0 */ diff --git a/includes/install.php b/includes/install.php index fffad9897c..a480746a89 100644 --- a/includes/install.php +++ b/includes/install.php @@ -210,7 +210,7 @@ function give_on_create_blog($blog_id, $user_id, $domain, $path, $site_id, $meta /** * Drop Give's custom tables when a mu site is deleted. * - * @unreleased updated implementation to query all give_* tables + * @since 3.4.0 updated implementation to query all give_* tables * @since 1.4.3 * * @param array $tables The tables to drop. diff --git a/includes/shortcodes.php b/includes/shortcodes.php index 165dfbaf26..8d73b11785 100644 --- a/includes/shortcodes.php +++ b/includes/shortcodes.php @@ -132,7 +132,7 @@ function give_donation_history( $atts, $content = false ) { * * Show the Give donation form. * - * @unreleased Add additional validations to check if the form is valid and has the 'published' status. + * @since 3.4.0 Add additional validations to check if the form is valid and has the 'published' status. * @since 2.30.0 Add short-circuit filter to allow for custom output. * @since 1.0 * @@ -210,7 +210,7 @@ function give_form_shortcode( $atts ) { * * Show the Give donation form goals. * - * @unreleased Add additional validations to check if the form is valid and has the 'published' status. + * @since 3.4.0 Add additional validations to check if the form is valid and has the 'published' status. * @since 1.0 * * @param array $atts Shortcode attributes. diff --git a/readme.txt b/readme.txt index 5979fe2631..ab76edccbb 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding Requires at least: 6.0 Tested up to: 6.4 Requires PHP: 7.2 -Stable tag: 3.3.1 +Stable tag: 3.4.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -262,6 +262,24 @@ 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.4.0: February 8th, 2024 = +* Fix: Resolved several issues with the billing address block including dynamically requiring certain fields and allowing state/county field input +* Fix: Resolved an issue with multi step form layout where the title was missing on the first step when show header was disabled +* Fix: Resolved errors when adding/removing a sub-site in a WP multisite environment (open-source contribution by @Genevieve-K) +* Fix: Resolved an issue with form modals and some gateways that redirect offsite to display the confirmation page after a donation +* Fix: Resolved a fields api compatability issue with showInReceipt metaKey +* Fix: Resolved a nonce validation issue with translated values (open-source contribution by @Genevieve-K) +* Fix: Resolved a PHP 8 compatability issue with the system info page (open-source contribution by @JeromeBeckett) +* Fix: Resolved several styling issues with the form modal block +* Fix: Updated Stripe connect redirect to be limited to specific pages +* New: Added form migration step for the GiveWP Gift Aid add-on +* New: Added new filter `givewp_stripe_payment_element_appearance_options` to modify the Stripe Payment Element gateway appearance options +* New: Added donation form processing lifecycle actions for more programmatic control over form processing +* Enhancement: Made donation list table programmatically extendable (open-source contribution by @pulsovi) +* Enhancement: Improved the flexibility of donation confirmation page detail values to allow sanitized html +* Enhancement: Added new filter to the gateways block to control visibility +* Enhancement: Made several improvements to the give importer for third-parties and admin + = 3.3.1: January 23rd, 2024 = * Fix: Resolved an issue checking for the GiveWP Funds and Designations add-on information during form migrations diff --git a/src/DonationForms/Actions/ConvertDonationFormBlocksToFieldsApi.php b/src/DonationForms/Actions/ConvertDonationFormBlocksToFieldsApi.php index 3360a56e05..399c507648 100644 --- a/src/DonationForms/Actions/ConvertDonationFormBlocksToFieldsApi.php +++ b/src/DonationForms/Actions/ConvertDonationFormBlocksToFieldsApi.php @@ -291,7 +291,7 @@ protected function createNodeFromDonorNameBlock(BlockModel $block): Node } /** - * @unreleased updated fields to add optional rules last so they can be dynamically validated. + * @since 3.4.0 updated fields to add optional rules last so they can be dynamically validated. * @since 3.0.0 */ protected function createNodeFromBillingAddressBlock(BlockModel $block): Node diff --git a/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php b/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php index e7a9866a60..81462124ff 100644 --- a/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php +++ b/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php @@ -88,7 +88,7 @@ private function getViewUrl(DonationForm $donationForm, string $embedId): string } /** - * @unreleased + * @since 3.4.0 */ private function getFormViewUrl(DonationForm $donationForm): string { diff --git a/src/DonationForms/Blocks/DonationFormBlock/resources/app/Components/ModalForm.tsx b/src/DonationForms/Blocks/DonationFormBlock/resources/app/Components/ModalForm.tsx index 2cd5159408..2784867b9e 100644 --- a/src/DonationForms/Blocks/DonationFormBlock/resources/app/Components/ModalForm.tsx +++ b/src/DonationForms/Blocks/DonationFormBlock/resources/app/Components/ModalForm.tsx @@ -15,7 +15,7 @@ type ModalFormProps = { }; /** - * @unreleased + * @since 3.4.0 * @since 3.2.0 include types. update BEM classnames. * @since 3.0.0 */ diff --git a/src/DonationForms/Blocks/DonationFormBlock/resources/app/index.tsx b/src/DonationForms/Blocks/DonationFormBlock/resources/app/index.tsx index 1de6ccd656..55a83dfcf7 100644 --- a/src/DonationForms/Blocks/DonationFormBlock/resources/app/index.tsx +++ b/src/DonationForms/Blocks/DonationFormBlock/resources/app/index.tsx @@ -19,12 +19,12 @@ type DonationFormBlockAppProps = { }; /** - * @unreleased + * @since 3.4.0 */ const inlineRedirectRoutes = ['donation-confirmation-receipt-view']; /** - * @unreleased + * @since 3.4.0 */ const isRedirect = (url: string) => { const redirectUrl = new URL(url); @@ -34,7 +34,7 @@ const isRedirect = (url: string) => { } /** - * @unreleased add logic for inline redirects. + * @since 3.4.0 add logic for inline redirects. * @since 3.2.0 replace form format reveal with new tab. * @since 3.0.0 */ diff --git a/src/DonationForms/Controllers/DonateController.php b/src/DonationForms/Controllers/DonateController.php index 7ddf163f98..b3f8d6f5bb 100644 --- a/src/DonationForms/Controllers/DonateController.php +++ b/src/DonationForms/Controllers/DonateController.php @@ -33,7 +33,7 @@ public function donate(DonateControllerData $formData, PaymentGateway $gateway) /** * Fires at the start of donation form processing, before any data is processed. * - * @unreleased + * @since 3.4.0 * * @param DonateControllerData $formData * @param string $gatewayId @@ -67,7 +67,7 @@ public function donate(DonateControllerData $formData, PaymentGateway $gateway) /** * Fires after a donation is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donation $donation * @param Subscription|null $subscription @@ -112,7 +112,7 @@ public function donate(DonateControllerData $formData, PaymentGateway $gateway) /** * Fires after a donation is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donation $donation * @param Subscription|null $subscription @@ -133,7 +133,7 @@ public function donate(DonateControllerData $formData, PaymentGateway $gateway) /** * Fires after a subscription is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Subscription $subscription * @param Donation $donation @@ -194,7 +194,7 @@ private function getOrCreateDonor( /** * Fires after a donor is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donor $donor * @param int $formId diff --git a/src/DonationForms/Controllers/DonationConfirmationReceiptViewController.php b/src/DonationForms/Controllers/DonationConfirmationReceiptViewController.php index 1e3c8386cd..faf49f60be 100644 --- a/src/DonationForms/Controllers/DonationConfirmationReceiptViewController.php +++ b/src/DonationForms/Controllers/DonationConfirmationReceiptViewController.php @@ -30,7 +30,7 @@ public function show(DonationConfirmationReceiptViewRouteData $data): string /** * Fires before the donation confirmation receipt view is rendered. * - * @unreleased + * @since 3.4.0 * * @param Donation $donation */ diff --git a/src/DonationForms/Listeners/StoreCustomFields.php b/src/DonationForms/Listeners/StoreCustomFields.php index e7d92909ed..c2cf7c26ab 100644 --- a/src/DonationForms/Listeners/StoreCustomFields.php +++ b/src/DonationForms/Listeners/StoreCustomFields.php @@ -56,7 +56,7 @@ function (Field $field) use ($customFields, $donation, $subscription) { /** * Fires after custom fields have been stored/processed * - * @unreleased + * @since 3.4.0 * * @param DonationForm $form * @param array $customFields diff --git a/src/DonationForms/Properties/FormSettings.php b/src/DonationForms/Properties/FormSettings.php index 292ac0e182..3dc1e3a0e4 100644 --- a/src/DonationForms/Properties/FormSettings.php +++ b/src/DonationForms/Properties/FormSettings.php @@ -183,37 +183,37 @@ class FormSettings implements Arrayable, Jsonable public $pdfSettings; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsImageUrl; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsImageStyle; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsLogoUrl; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsLogoPosition; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsSectionStyle; /** - * @unreleased + * @since 3.4.0 * @var string */ public $designSettingsTextFieldStyle; diff --git a/src/DonationForms/ValueObjects/DesignSettingsImageStyle.php b/src/DonationForms/ValueObjects/DesignSettingsImageStyle.php index 9bcdbeb131..41ed708ecd 100644 --- a/src/DonationForms/ValueObjects/DesignSettingsImageStyle.php +++ b/src/DonationForms/ValueObjects/DesignSettingsImageStyle.php @@ -5,7 +5,7 @@ use Give\Framework\Support\ValueObjects\Enum; /** - * @unreleased + * @since 3.4.0 * * @method static DonationFormErrorTypes BACKGROUND() * @method static DonationFormErrorTypes COVER() diff --git a/src/DonationForms/ValueObjects/DesignSettingsLogoPosition.php b/src/DonationForms/ValueObjects/DesignSettingsLogoPosition.php index 56bd4d00ae..6a2641a2d9 100644 --- a/src/DonationForms/ValueObjects/DesignSettingsLogoPosition.php +++ b/src/DonationForms/ValueObjects/DesignSettingsLogoPosition.php @@ -5,7 +5,7 @@ use Give\Framework\Support\ValueObjects\Enum; /** - * @unreleased + * @since 3.4.0 * * @method static DesignSettingsLogoPosition LEFT() * @method static DesignSettingsLogoPosition CENTER() diff --git a/src/DonationForms/ValueObjects/DesignSettingsSectionStyle.php b/src/DonationForms/ValueObjects/DesignSettingsSectionStyle.php index e6fba9cf69..9d78c2b976 100644 --- a/src/DonationForms/ValueObjects/DesignSettingsSectionStyle.php +++ b/src/DonationForms/ValueObjects/DesignSettingsSectionStyle.php @@ -5,7 +5,7 @@ use Give\Framework\Support\ValueObjects\Enum; /** - * @unreleased + * @since 3.4.0 * * @method static DesignSettingsSectionStyle DEFAULT() * @method static DesignSettingsSectionStyle BORDER() diff --git a/src/DonationForms/ValueObjects/DesignSettingsTextFieldStyle.php b/src/DonationForms/ValueObjects/DesignSettingsTextFieldStyle.php index 9c145f8a29..2f97d738f1 100644 --- a/src/DonationForms/ValueObjects/DesignSettingsTextFieldStyle.php +++ b/src/DonationForms/ValueObjects/DesignSettingsTextFieldStyle.php @@ -5,7 +5,7 @@ use Give\Framework\Support\ValueObjects\Enum; /** - * @unreleased + * @since 3.4.0 * @method static DesignSettingsTextFieldStyle DEFAULT() * @method static DesignSettingsTextFieldStyle BOX() * @method static DesignSettingsTextFieldStyle LINE() diff --git a/src/DonationForms/ViewModels/DonationFormViewModel.php b/src/DonationForms/ViewModels/DonationFormViewModel.php index 05a00e9c45..617ce83e5e 100644 --- a/src/DonationForms/ViewModels/DonationFormViewModel.php +++ b/src/DonationForms/ViewModels/DonationFormViewModel.php @@ -433,7 +433,7 @@ private function enqueueFormApp() } /** - * @unreleased + * @since 3.4.0 */ private function updateDesignSettingsClassNames(array &$classNames) { diff --git a/src/DonationForms/resources/app/form/MultiStepForm/components/StepsWrapper.tsx b/src/DonationForms/resources/app/form/MultiStepForm/components/StepsWrapper.tsx index 1aec333594..e63b40cd7d 100644 --- a/src/DonationForms/resources/app/form/MultiStepForm/components/StepsWrapper.tsx +++ b/src/DonationForms/resources/app/form/MultiStepForm/components/StepsWrapper.tsx @@ -7,7 +7,7 @@ import {StepObject} from '@givewp/forms/app/form/MultiStepForm/types'; import getCurrentStepObject from '@givewp/forms/app/form/MultiStepForm/utilities/getCurrentStepObject'; /** - * @unreleased updated with steps props and showStepsHeader conditional + * @since 3.4.0 updated with steps props and showStepsHeader conditional * @since 3.0.0 */ export default function StepsWrapper({steps, children}: {steps: StepObject[]; children: ReactNode}) { diff --git a/src/DonationForms/resources/app/form/MultiStepForm/store/index.tsx b/src/DonationForms/resources/app/form/MultiStepForm/store/index.tsx index 068174ae52..e8359786c0 100644 --- a/src/DonationForms/resources/app/form/MultiStepForm/store/index.tsx +++ b/src/DonationForms/resources/app/form/MultiStepForm/store/index.tsx @@ -9,7 +9,7 @@ const StoreContextDispatch = createContext(null); StoreContextDispatch.displayName = 'DonationFormMultiStepStateDispatch'; /** - * @unreleased removed showHeader in favor of DonationFormSettings context + * @since 3.4.0 removed showHeader in favor of DonationFormSettings context * @since 3.0.0 */ export type MultiStepFormContextState = { diff --git a/src/DonationForms/resources/app/utilities/setDesignSettings.ts b/src/DonationForms/resources/app/utilities/setDesignSettings.ts index 1848dab94c..231a1ab635 100644 --- a/src/DonationForms/resources/app/utilities/setDesignSettings.ts +++ b/src/DonationForms/resources/app/utilities/setDesignSettings.ts @@ -1,7 +1,7 @@ import {FormSettings} from '@givewp/form-builder/types'; /** - * @unreleased + * @since 3.4.0 */ function updateDesignSettingsClassName(root: HTMLElement, block, element) { root.classList.forEach((className) => { @@ -14,7 +14,7 @@ function updateDesignSettingsClassName(root: HTMLElement, block, element) { /** * @note currently not in use - * @unreleased + * @since 3.4.0 */ export default function setDesignSettings(root: HTMLElement, settings: FormSettings) { if (settings['designSettingsSectionStyle']) { diff --git a/src/DonationForms/resources/registrars/templates/groups/BillingAddress.tsx b/src/DonationForms/resources/registrars/templates/groups/BillingAddress.tsx index e64ee87d5f..7102f8db72 100644 --- a/src/DonationForms/resources/registrars/templates/groups/BillingAddress.tsx +++ b/src/DonationForms/resources/registrars/templates/groups/BillingAddress.tsx @@ -43,7 +43,7 @@ async function getStates(url, country) { /** * This component is used to dynamically update the state field based on the country value * - * @unreleased Set current state value to the state input field + * @since 3.4.0 Set current state value to the state input field * @since 3.0.0 */ function StateFieldContainer({ @@ -202,7 +202,7 @@ function StateFieldContainer({ } /** - * @unreleased Update city and zip components before rendering to display required asterisk + * @since 3.4.0 Update city and zip components before rendering to display required asterisk * @since 3.0.0 */ export default function BillingAddress({ diff --git a/src/DonationForms/resources/registrars/templates/layouts/DonationReceipt.tsx b/src/DonationForms/resources/registrars/templates/layouts/DonationReceipt.tsx index 7364c5d357..323b88f02d 100644 --- a/src/DonationForms/resources/registrars/templates/layouts/DonationReceipt.tsx +++ b/src/DonationForms/resources/registrars/templates/layouts/DonationReceipt.tsx @@ -17,7 +17,7 @@ const SecureBadge = () => { /** * - * @unreleased updated to render value using Interweave + * @since 3.4.0 updated to render value using Interweave * @since 3.0.0 */ const Details = ({id, heading, details}: {id: string; heading: string; details: ReceiptDetail[]}) => diff --git a/src/DonationForms/resources/registrars/templates/layouts/HeaderTextWrapper.tsx b/src/DonationForms/resources/registrars/templates/layouts/HeaderTextWrapper.tsx index 52dada6f5c..ed5ebdebf5 100644 --- a/src/DonationForms/resources/registrars/templates/layouts/HeaderTextWrapper.tsx +++ b/src/DonationForms/resources/registrars/templates/layouts/HeaderTextWrapper.tsx @@ -1,5 +1,5 @@ /** - * @unreleased + * @since 3.4.0 */ export default function HeaderTextWrapper({children}) { const {designSettingsImageStyle} = window.givewp.form.hooks.useDonationFormSettings(); diff --git a/src/Donations/Endpoints/ListDonations.php b/src/Donations/Endpoints/ListDonations.php index a8ce35a447..7645340d12 100644 --- a/src/Donations/Endpoints/ListDonations.php +++ b/src/Donations/Endpoints/ListDonations.php @@ -13,7 +13,7 @@ use WP_REST_Response; /** - * @unreleased The class is extendable + * @since 3.4.0 The class is extendable */ class ListDonations extends Endpoint { @@ -33,7 +33,7 @@ class ListDonations extends Endpoint protected $listTable; /** - * @unreleased + * @since 3.4.0 * @access public */ public function __construct(DonationsListTable $listTable) @@ -220,7 +220,7 @@ public function getTotalDonationsCount(): int } /** - * @unreleased Make this method protected so it can be extended + * @since 3.4.0 Make this method protected so it can be extended * @since 3.2.0 Updated query to account for possible null and empty values for _give_payment_mode meta * @since 2.24.0 Remove joins as it uses ModelQueryBuilder and change clauses to use attach_meta * @since 2.21.0 diff --git a/src/FormBuilder/resources/js/form-builder/src/components/settings/DesignSettings/index.tsx b/src/FormBuilder/resources/js/form-builder/src/components/settings/DesignSettings/index.tsx index 38306c44eb..dd22aa4dd3 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/settings/DesignSettings/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/settings/DesignSettings/index.tsx @@ -8,7 +8,7 @@ type DesignSettings = { }; /** - * @unreleased + * @since 3.4.0 */ export default function DesignSettings({title, description, children}: DesignSettings) { return ( diff --git a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Design.tsx b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Design.tsx index feb168f342..3fda7fd03f 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Design.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Design.tsx @@ -6,7 +6,7 @@ import {TabSelector} from '@givewp/form-builder/components/sidebar/TabSelector'; type designTabState = DesignSettings.General | DesignSettings.Styles; /** - * @unreleased add FormDesignSetting tabs. + * @since 3.4.0 add FormDesignSetting tabs. */ const Sidebar = ({toggleShowSidebar}) => { const [selected, setSelected] = useState(DesignSettings.General); diff --git a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/TabSelector/index.tsx b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/TabSelector/index.tsx index 90939b418a..c65f37e48b 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/TabSelector/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/TabSelector/index.tsx @@ -9,7 +9,7 @@ type TabSelector = { }; /** - * @unreleased + * @since 3.4.0 */ export function TabSelector({close, selectTab, selected, tabs}: TabSelector) { return ( diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/header-with-image-settings/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/header-with-image-settings/index.tsx index 7a9f6bdb33..8f32c6203f 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/header-with-image-settings/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/header-with-image-settings/index.tsx @@ -7,7 +7,7 @@ import MediaLibrary from '@givewp/form-builder/components/settings/MediaLibrary' /** * @note currently not in use * - * @unreleased + * @since 3.4.0 */ export default function HeaderWithImageSettings({dispatch, publishSettings}) { const { diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/index.tsx index 17d762d69f..c7a4eab513 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/index.tsx @@ -13,7 +13,7 @@ const {formDesigns} = getWindowData(); const getDesign = (designId: string) => formDesigns[designId]; /** - * @unreleased abstract design controls. + * @since 3.4.0 abstract design controls. */ export default function GeneralControls() { const { diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/input-fields/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/input-fields/index.tsx index 2bfc25a425..5d343ffa71 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/input-fields/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/general-controls/input-fields/index.tsx @@ -4,7 +4,7 @@ import {setFormSettings, useFormState} from '@givewp/form-builder/stores/form-st /** * @note currently unused - * @unreleased + * @since 3.4.0 */ export default function InputFields({dispatch, publishSettings}) { const { diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx index 7602835ab3..efb0c8b20c 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/index.tsx @@ -8,7 +8,7 @@ export enum DesignSettings { } /** - * @unreleased + * @since 3.4.0 */ const FormDesignSettings = ({tab}) => { if (tab == DesignSettings.General) { diff --git a/src/FormBuilder/resources/js/form-builder/src/settings/design/style-controls/index.tsx b/src/FormBuilder/resources/js/form-builder/src/settings/design/style-controls/index.tsx index 4d774fb7be..0130981ab4 100644 --- a/src/FormBuilder/resources/js/form-builder/src/settings/design/style-controls/index.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/settings/design/style-controls/index.tsx @@ -10,7 +10,7 @@ const {formDesigns} = getWindowData(); const getDesign = (designId: string) => formDesigns[designId]; /** - * @unreleased abstract design controls. + * @since 3.4.0 abstract design controls. */ export default function StyleControls() { const dispatch = useFormStateDispatch(); diff --git a/src/FormMigration/FormMetaDecorator.php b/src/FormMigration/FormMetaDecorator.php index 74b2598970..33e0c2ef5b 100644 --- a/src/FormMigration/FormMetaDecorator.php +++ b/src/FormMigration/FormMetaDecorator.php @@ -620,7 +620,7 @@ public function hasFundOptions(): bool } /** - * @unreleased added additional checks to ensure that the form has funds and fund options + * @since 3.4.0 added additional checks to ensure that the form has funds and fund options * @since 3.3.0 */ public function getFundsAndDesignationsAttributes(): array @@ -697,7 +697,7 @@ private function isDefaultFund(int $fundId): bool } /** - * @unreleased + * @since 3.4.0 * * @return string 'global', 'enabled', 'disabled' */ @@ -707,7 +707,7 @@ public function getGiftAidStatus(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidTitle(): string { @@ -715,7 +715,7 @@ public function getGiftAidTitle(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidDescription(): string { @@ -723,7 +723,7 @@ public function getGiftAidDescription(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidLongExplanationEnabled(): bool { @@ -731,7 +731,7 @@ public function getGiftAidLongExplanationEnabled(): bool } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidLongExplanation(): string { @@ -739,7 +739,7 @@ public function getGiftAidLongExplanation(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidCheckboxLabel(): string { @@ -747,7 +747,7 @@ public function getGiftAidCheckboxLabel(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidAgreementText(): string { @@ -755,7 +755,7 @@ public function getGiftAidAgreementText(): string } /** - * @unreleased + * @since 3.4.0 */ public function getGiftAidDeclarationForm(): string { diff --git a/src/FormMigration/Steps/GiftAid.php b/src/FormMigration/Steps/GiftAid.php index 0e39fbd530..19fd3131cd 100644 --- a/src/FormMigration/Steps/GiftAid.php +++ b/src/FormMigration/Steps/GiftAid.php @@ -9,7 +9,7 @@ class GiftAid extends FormMigrationStep { /** - * @unreleased + * @since 3.4.0 * * @return void */ diff --git a/src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php b/src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php index afde5b0436..52fdb4434b 100644 --- a/src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php +++ b/src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php @@ -32,7 +32,7 @@ public function __invoke(DonationReceipt $receipt): DonationReceipt } /** - * @unreleased updated to check for metaKey first and then fallback to name + * @since 3.4.0 updated to check for metaKey first and then fallback to name * @since 3.3.0 updated conditional to check for scopes and added support for retrieving values programmatically with Fields API * @since 3.0.0 */ diff --git a/src/Helpers/Frontend/Shortcode.php b/src/Helpers/Frontend/Shortcode.php index 40c4c6d81f..bbc1cf2d8d 100644 --- a/src/Helpers/Frontend/Shortcode.php +++ b/src/Helpers/Frontend/Shortcode.php @@ -27,7 +27,7 @@ public static function getReceiptShortcodeFromConfirmationPage() } /** - * @unreleased + * @since 3.4.0 */ public static function isValidDonation(int $donationId): bool { @@ -35,7 +35,7 @@ public static function isValidDonation(int $donationId): bool } /** - * @unreleased + * @since 3.4.0 */ public static function isValidForm(int $formId): bool { @@ -43,7 +43,7 @@ public static function isValidForm(int $formId): bool } /** - * @unreleased + * @since 3.4.0 */ public static function isPublishedForm(int $formId): bool { diff --git a/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php b/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php index 5757fa8521..efa1b7f7c0 100644 --- a/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php +++ b/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php @@ -71,7 +71,7 @@ public function handleBeforeGateway(array $legacyDonationData, PaymentGateway $r /** * Fires at the start of donation form processing, before any data is processed. * - * @unreleased + * @since 3.4.0 * * @param FormData $formData * @param string $gatewayId @@ -122,7 +122,7 @@ public function handleBeforeGateway(array $legacyDonationData, PaymentGateway $r /** * Fires after a donation is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donation $donation * @param Subscription|null $subscription @@ -132,7 +132,7 @@ public function handleBeforeGateway(array $legacyDonationData, PaymentGateway $r /** * Fires after a subscription is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Subscription $subscription * @param Donation $donation @@ -183,7 +183,7 @@ public function handleBeforeGateway(array $legacyDonationData, PaymentGateway $r /** * Fires after a donation is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donation $donation * @param Subscription|null $subscription @@ -324,7 +324,7 @@ private function setSession($donationId) } /** - * @unreleased add $formId and do_action + * @since 3.4.0 add $formId and do_action * @since 3.2.0 add honorific and use GetOrCreateDonor action * @since 2.21.0 * @@ -352,7 +352,7 @@ private function getOrCreateDonor( /** * Fires after a donor is created during donation form processing. * - * @unreleased + * @since 3.4.0 * * @param Donor $donor * @param int $formId diff --git a/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php b/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php index b19631ff90..b1874e7fde 100644 --- a/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php +++ b/src/PaymentGateways/Gateways/PayPalStandard/Migrations/SetPayPalStandardGatewayId.php @@ -20,7 +20,7 @@ class SetPayPalStandardGatewayId extends Migration /** * @inheritdoc * - * @unreleased confirm $gateways is an array + * @since 3.4.0 confirm $gateways is an array */ public function run() { diff --git a/src/PaymentGateways/PayPalCommerce/ScriptLoader.php b/src/PaymentGateways/PayPalCommerce/ScriptLoader.php index 6f77ecb3d3..341f91fa16 100644 --- a/src/PaymentGateways/PayPalCommerce/ScriptLoader.php +++ b/src/PaymentGateways/PayPalCommerce/ScriptLoader.php @@ -291,7 +291,7 @@ private function getPartnerJsUrl() /** * This function should return form id from page, post content. * - * @unreleased Check if $attributes is a valid array before trying to use it as it were + * @since 3.4.0 Check if $attributes is a valid array before trying to use it as it were * @since 3.2.0 */ private function getFormIdFromPostContent(): ?int diff --git a/src/PaymentGateways/Stripe/Controllers/NewStripeAccountOnBoardingController.php b/src/PaymentGateways/Stripe/Controllers/NewStripeAccountOnBoardingController.php index 843f4a94bf..76ef20dc49 100644 --- a/src/PaymentGateways/Stripe/Controllers/NewStripeAccountOnBoardingController.php +++ b/src/PaymentGateways/Stripe/Controllers/NewStripeAccountOnBoardingController.php @@ -30,7 +30,7 @@ public function __construct(Settings $settings) } /** - * @unreleased Handle Stripe connect account on-boarding redirect on specific pages. + * @since 3.4.0 Handle Stripe connect account on-boarding redirect on specific pages. * * @since 2.13.0 */ @@ -160,7 +160,7 @@ public function __invoke() * 1. GiveWP stripe settings page. * 2. V2 donation form edit form. * - * @unreleased + * @since 3.4.0 */ protected function canProcessRequestOnCurrentPage(string $url): bool { diff --git a/templates/shortcode-receipt.php b/templates/shortcode-receipt.php index 1e2fdcc3d6..a48211b938 100644 --- a/templates/shortcode-receipt.php +++ b/templates/shortcode-receipt.php @@ -15,7 +15,7 @@ /** * Double-Validation: Check for $donation global. * - * @unreleased Add additional validations to check if the form is valid and has the 'published' status. + * @since 3.4.0 Add additional validations to check if the form is valid and has the 'published' status. */ if ( ! is_object($donation) || ! ShortcodeUtils::isValidDonation($donation->ID)) { Give_Notices::print_frontend_notice( __( 'The specified receipt ID appears to be invalid.', 'give' ) ); diff --git a/tests/Feature/FormMigration/Controllers/TestMigrationController.php b/tests/Feature/FormMigration/Controllers/TestMigrationController.php index a3cd43279a..a2f628632e 100644 --- a/tests/Feature/FormMigration/Controllers/TestMigrationController.php +++ b/tests/Feature/FormMigration/Controllers/TestMigrationController.php @@ -13,7 +13,7 @@ /** - * @unreleased + * @since 3.4.0 * * @covers \Give\FormMigration\Controllers\MigrationController */ @@ -22,7 +22,7 @@ class TestMigrationController extends TestCase use RefreshDatabase, LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 */ public function testShouldMigrateFormV2ToV3(): void { @@ -51,7 +51,7 @@ public function testShouldMigrateFormV2ToV3(): void /** * - * @unreleased + * @since 3.4.0 */ public function getMockRequest(string $method): WP_REST_Request { diff --git a/tests/Feature/FormMigration/Steps/TestDonationGoal.php b/tests/Feature/FormMigration/Steps/TestDonationGoal.php index defda15b07..5628134dd9 100644 --- a/tests/Feature/FormMigration/Steps/TestDonationGoal.php +++ b/tests/Feature/FormMigration/Steps/TestDonationGoal.php @@ -9,7 +9,7 @@ use Give\Tests\Unit\DonationForms\TestTraits\LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 * * @covers \Give\FormMigration\Steps\DonationGoal */ @@ -18,7 +18,7 @@ class TestDonationGoal extends TestCase use RefreshDatabase, LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 */ public function testProcessShouldUpdateDonationFormDonationGoalSettings(): void { diff --git a/tests/Feature/FormMigration/Steps/TestDonationOptions.php b/tests/Feature/FormMigration/Steps/TestDonationOptions.php index 4819a2fbe3..59a0315d17 100644 --- a/tests/Feature/FormMigration/Steps/TestDonationOptions.php +++ b/tests/Feature/FormMigration/Steps/TestDonationOptions.php @@ -9,7 +9,7 @@ use Give\Tests\Unit\DonationForms\TestTraits\LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 * * @covers \Give\FormMigration\Steps\DonationOptions */ @@ -17,7 +17,7 @@ class TestDonationOptions extends TestCase { use RefreshDatabase, LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 */ public function testProcessShouldUpdateDonationAmountBlockAttributes(): void { @@ -47,7 +47,7 @@ public function testProcessShouldUpdateDonationAmountBlockAttributes(): void } /** - * @unreleased + * @since 3.4.0 */ public function testProcessShouldUpdateDonationAmountBlockAttributesWithDonationLevels(): void { diff --git a/tests/Feature/FormMigration/TestFormMetaDecorator.php b/tests/Feature/FormMigration/TestFormMetaDecorator.php index e0d385074e..51182a2516 100644 --- a/tests/Feature/FormMigration/TestFormMetaDecorator.php +++ b/tests/Feature/FormMigration/TestFormMetaDecorator.php @@ -8,7 +8,7 @@ use Give\Tests\Unit\DonationForms\TestTraits\LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 * * @covers \Give\FormMigration\FormMetaDecorator */ @@ -16,7 +16,7 @@ class TestFormMetaDecorator extends TestCase { use RefreshDatabase, LegacyDonationFormAdapter; /** - * @unreleased + * @since 3.4.0 */ public function testIsLastNameRequiredShouldReturnTrue(): void { @@ -40,7 +40,7 @@ public function testIsLastNameRequiredShouldReturnTrue(): void } /** - * @unreleased + * @since 3.4.0 */ public function testIsLastNameRequiredShouldReturnFalse(): void { @@ -64,7 +64,7 @@ public function testIsLastNameRequiredShouldReturnFalse(): void } /** - * @unreleased + * @since 3.4.0 */ public function testIsNameTitlePrefixEnabledShouldReturnTrue(): void { @@ -88,7 +88,7 @@ public function testIsNameTitlePrefixEnabledShouldReturnTrue(): void } /** - * @unreleased + * @since 3.4.0 */ public function testIsNameTitlePrefixEnabledShouldReturnFalse(): void { @@ -112,7 +112,7 @@ public function testIsNameTitlePrefixEnabledShouldReturnFalse(): void } /** - * @unreleased + * @since 3.4.0 */ public function testHasFundsShouldReturnFalse(): void { @@ -124,7 +124,7 @@ public function testHasFundsShouldReturnFalse(): void } /** - * @unreleased + * @since 3.4.0 */ public function testHasFundOptionsShouldReturnFalse(): void { @@ -136,7 +136,7 @@ public function testHasFundOptionsShouldReturnFalse(): void } /** - * @unreleased + * @since 3.4.0 */ public function testHasFundsShouldReturnTrue(): void { @@ -144,7 +144,7 @@ public function testHasFundsShouldReturnTrue(): void } /** - * @unreleased + * @since 3.4.0 */ public function testHasFundOptionsShouldReturnTrue(): void { diff --git a/tests/Unit/DonationForms/TestTraits/LegacyDonationFormAdapter.php b/tests/Unit/DonationForms/TestTraits/LegacyDonationFormAdapter.php index da48d48129..16d95bc6af 100644 --- a/tests/Unit/DonationForms/TestTraits/LegacyDonationFormAdapter.php +++ b/tests/Unit/DonationForms/TestTraits/LegacyDonationFormAdapter.php @@ -13,7 +13,7 @@ trait LegacyDonationFormAdapter { /** - * @unreleased added $args parameter + * @since 3.4.0 added $args parameter * @since 2.25.0 */ public function createSimpleDonationForm(array $args = []): DonationForm diff --git a/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php b/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php index abe13580e9..cd5a61ad87 100644 --- a/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php +++ b/tests/Unit/Framework/Receipts/TestGenerateConfirmationPageReceipt.php @@ -297,7 +297,7 @@ public function testShouldAddCustomFieldsToAdditionalDetails(): void } /** - * @unreleased + * @since 3.4.0 */ public function testShouldAddCustomFieldsUsingMetaKayToAdditionalDetails(): void {