diff --git a/assets/src/js/frontend/paypal-commerce/SmartButtons.js b/assets/src/js/frontend/paypal-commerce/SmartButtons.js index 0a22a784e2..0c0d62fa18 100644 --- a/assets/src/js/frontend/paypal-commerce/SmartButtons.js +++ b/assets/src/js/frontend/paypal-commerce/SmartButtons.js @@ -142,7 +142,7 @@ class SmartButtons extends PaymentMethod { /** * Create subscription event handler for smart buttons. * - * @unreleased Pass subscriber details to subscription. These details will automatically fill in PayPal payment modal. + * @since 3.1.0 Pass subscriber details to subscription. These details will automatically fill in PayPal payment modal. * @since 2.9.0 * * @param {object} data PayPal button data. diff --git a/includes/class-give-scripts.php b/includes/class-give-scripts.php index f0e7fd6227..1209ed0a0f 100644 --- a/includes/class-give-scripts.php +++ b/includes/class-give-scripts.php @@ -604,7 +604,7 @@ public function get_frontend_stylesheet_uri() { /** * Gutenberg admin scripts. * - * @unreleased Use wp scripts to compile blocks + * @since 3.1.0 Use wp scripts to compile blocks * @since 2.19.0 Remove undefined gutenberg.css * @since 2.19.6 Load script with EnqueueScript. * @since 2.19.6 Load missing block styles diff --git a/includes/database/class-give-db-meta.php b/includes/database/class-give-db-meta.php index 71051a3a89..a7c7f952d7 100644 --- a/includes/database/class-give-db-meta.php +++ b/includes/database/class-give-db-meta.php @@ -126,7 +126,7 @@ function __construct() { /** * Retrieve payment meta field for a payment. * - * @unreleased Return empty array, when request raw metadata if $single is set to false and metadata does not exist. + * @since 3.1.0 Return empty array, when request raw metadata if $single is set to false and metadata does not exist. * @since 2.0 * * @param int $id Pst Type ID. diff --git a/includes/shortcodes.php b/includes/shortcodes.php index 46c3bb43b4..80824e8ba6 100644 --- a/includes/shortcodes.php +++ b/includes/shortcodes.php @@ -25,7 +25,7 @@ * * Displays a user's donation history. * - * @unreleased pass form id by reference in give_totals shortcode. + * @since 3.1.0 pass form id by reference in give_totals shortcode. * @since 1.0 * * @param array $atts diff --git a/src/DonationForms/resources/app/DonationFormApp.tsx b/src/DonationForms/resources/app/DonationFormApp.tsx index 42731d8fc7..e13c9ed4d8 100644 --- a/src/DonationForms/resources/app/DonationFormApp.tsx +++ b/src/DonationForms/resources/app/DonationFormApp.tsx @@ -76,7 +76,7 @@ function App({form}: { form: DonationForm }) { } /** - * @unreleased + * @since 3.1.0 */ function AppPreview() { diff --git a/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts b/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts index 7935745970..26e978052e 100644 --- a/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts +++ b/src/DonationForms/resources/app/utilities/useDonationFormPubSub.ts @@ -16,7 +16,7 @@ export const PREVIEW_EVENTS = { /** * Simple Publish/Subscribe system used for handling form state in preview mode * - * @unreleased + * @since 3.1.0 */ export default function useDonationFormPubSub() { diff --git a/src/DonationForms/resources/types.ts b/src/DonationForms/resources/types.ts index 8fe05e672f..f760d30730 100644 --- a/src/DonationForms/resources/types.ts +++ b/src/DonationForms/resources/types.ts @@ -193,7 +193,7 @@ export interface Section extends Group { } /** - * @unreleased + * @since 3.1.0 */ export interface FormGoal { type: string; diff --git a/src/FormBuilder/Actions/GenerateDefaultDonationFormBlockCollection.php b/src/FormBuilder/Actions/GenerateDefaultDonationFormBlockCollection.php index 3841ea8150..269e394af5 100644 --- a/src/FormBuilder/Actions/GenerateDefaultDonationFormBlockCollection.php +++ b/src/FormBuilder/Actions/GenerateDefaultDonationFormBlockCollection.php @@ -6,12 +6,12 @@ use Give\Framework\Blocks\BlockModel; /** - * @unreleased + * @since 3.1.0 */ class GenerateDefaultDonationFormBlockCollection { /** - * @unreleased + * @since 3.1.0 */ public function __invoke(): BlockCollection { @@ -43,7 +43,7 @@ public function __invoke(): BlockCollection } /** - * @unreleased + * @since 3.1.0 */ protected function createSection(string $title, string $description, BlockModel ...$innerBlocks): BlockModel { @@ -58,7 +58,7 @@ protected function createSection(string $title, string $description, BlockModel } /** - * @unreleased + * @since 3.1.0 */ protected function createAmountBlock(): BlockModel { @@ -93,7 +93,7 @@ protected function createAmountBlock(): BlockModel } /** - * @unreleased + * @since 3.1.0 */ protected function createDonorNameBlock(): BlockModel { @@ -117,7 +117,7 @@ protected function createDonorNameBlock(): BlockModel } /** - * @unreleased + * @since 3.1.0 */ protected function createEmailBlock(): BlockModel { @@ -132,7 +132,7 @@ protected function createEmailBlock(): BlockModel } /** - * @unreleased + * @since 3.1.0 */ protected function createDonationSummaryBlock(): BlockModel { @@ -144,7 +144,7 @@ protected function createDonationSummaryBlock(): BlockModel } /** - * @unreleased + * @since 3.1.0 */ protected function createPaymentGatewaysBlock(): BlockModel { diff --git a/src/FormBuilder/Routes/CreateFormRoute.php b/src/FormBuilder/Routes/CreateFormRoute.php index ad22968c8b..3185de8245 100644 --- a/src/FormBuilder/Routes/CreateFormRoute.php +++ b/src/FormBuilder/Routes/CreateFormRoute.php @@ -16,7 +16,7 @@ class CreateFormRoute { /** - * @unreleased updated default form blocks to be generated from block models instead of json + * @since 3.1.0 updated default form blocks to be generated from block models instead of json * @since 3.0.0 * * @return void diff --git a/src/FormBuilder/Routes/RegisterFormBuilderPageRoute.php b/src/FormBuilder/Routes/RegisterFormBuilderPageRoute.php index b9c8ec4cb1..a9fb501ffa 100644 --- a/src/FormBuilder/Routes/RegisterFormBuilderPageRoute.php +++ b/src/FormBuilder/Routes/RegisterFormBuilderPageRoute.php @@ -58,7 +58,7 @@ public function __invoke() /** * Render page with scripts * - * @unreleased set translations for scripts + * @since 3.1.0 set translations for scripts * @since 3.0.0 * * @return void @@ -94,7 +94,7 @@ public function renderPage() Language::setScriptTranslations($registrarsScriptHandle); /** - * @unreleased set translations for scripts + * @since 3.1.0 set translations for scripts * @since 3.0.0 * Using `wp_enqueue_script` instead of `new EnqueueScript` for more control over dependencies. * The `EnqueueScript` class discovers the dependencies from the associated `asset.php` file, diff --git a/src/Framework/Blocks/BlockModel.php b/src/Framework/Blocks/BlockModel.php index bc8de55513..5581e87eac 100644 --- a/src/Framework/Blocks/BlockModel.php +++ b/src/Framework/Blocks/BlockModel.php @@ -29,7 +29,7 @@ class BlockModel implements Arrayable public $innerBlocks; /** - * @unreleased added innerBlocks sanitization + * @since 3.1.0 added innerBlocks sanitization * @since 3.0.0 * @param string $name * @param string $clientId @@ -52,7 +52,7 @@ public function __construct( } /** - * @unreleased + * @since 3.1.0 * * @param array|BlockCollection|null $innerBlocks */ @@ -117,7 +117,7 @@ public function getShortName(): string } /** - * @unreleased simplified innerBlocks param + * @since 3.1.0 simplified innerBlocks param * @since 3.0.0 * * @param array $blockData diff --git a/src/PaymentGateways/Gateways/PayPalCommerce/PayPalCommerceGateway.php b/src/PaymentGateways/Gateways/PayPalCommerce/PayPalCommerceGateway.php index a6d15e7076..d03d5fc857 100644 --- a/src/PaymentGateways/Gateways/PayPalCommerce/PayPalCommerceGateway.php +++ b/src/PaymentGateways/Gateways/PayPalCommerce/PayPalCommerceGateway.php @@ -31,7 +31,7 @@ public function getLegacyFormFieldMarkup(int $formId, array $args): string } /** - * @unreleased set translations for script + * @since 3.1.0 set translations for script * @since 3.0.0 */ public function enqueueScript(int $formId) diff --git a/src/PaymentGateways/Gateways/PayPalCommerce/types.ts b/src/PaymentGateways/Gateways/PayPalCommerce/types.ts index 0ad7bf24f7..deff86a3f6 100644 --- a/src/PaymentGateways/Gateways/PayPalCommerce/types.ts +++ b/src/PaymentGateways/Gateways/PayPalCommerce/types.ts @@ -1,7 +1,7 @@ /** * PayPal Commerce Platform: Standard address. * - * @unreleased + * @since 3.1.0 */ export type PayPalAddress = { address_line_1: string, @@ -16,7 +16,7 @@ export type PayPalAddress = { * PayPal Commerce Platform: Shipping address * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_revise!path=shipping_address&t=request - * @unreleased + * @since 3.1.0 */ export type PayPalShippingAddress = { name: { @@ -29,7 +29,7 @@ export type PayPalShippingAddress = { * PayPal Commerce Platform: Subscriber * * @see https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_create!path=subscriber&t=request - * @unreleased + * @since 3.1.0 */ export type PayPalSubscriber = { name: { diff --git a/src/PaymentGateways/Gateways/PayPalStandard/PayPalStandard.php b/src/PaymentGateways/Gateways/PayPalStandard/PayPalStandard.php index 8d06eb4e14..2aed61c1f3 100644 --- a/src/PaymentGateways/Gateways/PayPalStandard/PayPalStandard.php +++ b/src/PaymentGateways/Gateways/PayPalStandard/PayPalStandard.php @@ -91,7 +91,7 @@ public function formSettings(int $formId): array } /** - * @unreleased set translations for script + * @since 3.1.0 set translations for script * @since 3.0.0 */ public function enqueueScript(int $formId) diff --git a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php index ea946e0cc1..9c536b0089 100644 --- a/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php +++ b/src/PaymentGateways/Gateways/Stripe/StripePaymentElementGateway/StripePaymentElementGateway.php @@ -52,7 +52,7 @@ public function getPaymentMethodLabel(): string } /** - * @unreleased set translations for script + * @since 3.1.0 set translations for script * @since 3.0.0 */ public function enqueueScript(int $formId) diff --git a/src/PaymentGateways/Gateways/TestOffsiteGateway/TestOffsiteGateway.php b/src/PaymentGateways/Gateways/TestOffsiteGateway/TestOffsiteGateway.php index 9ae0670ef7..471ca8deaf 100644 --- a/src/PaymentGateways/Gateways/TestOffsiteGateway/TestOffsiteGateway.php +++ b/src/PaymentGateways/Gateways/TestOffsiteGateway/TestOffsiteGateway.php @@ -74,7 +74,7 @@ public function getPaymentMethodLabel(): string } /** - * @unreleased set translations for script + * @since 3.1.0 set translations for script * @since 2.30.0 */ public function enqueueScript(int $formId) diff --git a/src/PaymentGateways/PayPalCommerce/AjaxRequestHandler.php b/src/PaymentGateways/PayPalCommerce/AjaxRequestHandler.php index 15a3d26e3f..1d5c480408 100644 --- a/src/PaymentGateways/PayPalCommerce/AjaxRequestHandler.php +++ b/src/PaymentGateways/PayPalCommerce/AjaxRequestHandler.php @@ -225,7 +225,7 @@ public function removePayPalAccount() * * @todo: handle payment create error on frontend. * - * @unreleased Remove unused variable from createOrder argument. + * @since 3.1.0 Remove unused variable from createOrder argument. * @since 2.9.0 */ public function createOrder() @@ -370,7 +370,7 @@ private function validateFrontendRequest() /** * This function should return address array in PayPal rest api accepted format. * - * @unreleased Return address only if setting enabled and has valida country in PayPal accepted formatted. + * @since 3.1.0 Return address only if setting enabled and has valida country in PayPal accepted formatted. * @since 2.11.1 */ private function getDonorAddressFromPostedDataForPaypalOrder(array $postedData): array diff --git a/src/PaymentGateways/PayPalCommerce/Repositories/PayPalOrder.php b/src/PaymentGateways/PayPalCommerce/Repositories/PayPalOrder.php index 00806735ec..dc6cedeba8 100644 --- a/src/PaymentGateways/PayPalCommerce/Repositories/PayPalOrder.php +++ b/src/PaymentGateways/PayPalCommerce/Repositories/PayPalOrder.php @@ -97,7 +97,7 @@ public function approveOrder($orderId) * * @see https://developer.paypal.com/docs/api/orders/v2 * - * @unreleased "payer" argument is deprecated, using payment_source/paypal. + * @since 3.1.0 "payer" argument is deprecated, using payment_source/paypal. * @since 2.9.0 * @since 2.16.2 Conditionally set transaction as donation or standard transaction in PayPal. * diff --git a/src/Promotions/InPluginUpsells/SaleBanners.php b/src/Promotions/InPluginUpsells/SaleBanners.php index a92ac0b92f..8505aed4b2 100644 --- a/src/Promotions/InPluginUpsells/SaleBanners.php +++ b/src/Promotions/InPluginUpsells/SaleBanners.php @@ -33,7 +33,7 @@ public function __construct() /** * Get banners definitions * - * @unreleased add Giving Tuesday 2023 banner + * @since 3.1.0 add Giving Tuesday 2023 banner * @since 2.23.2 add Giving Tuesday 2022 banner * @since 2.17.0 * @@ -90,7 +90,7 @@ public function getBanners(): array /** * Get the banners that should be displayed. * - * @unreleased hide banners for users with Pro tier accounts. + * @since 3.1.0 hide banners for users with Pro tier accounts. * @since 2.17.0 */ public function getVisibleBanners(): array @@ -189,7 +189,7 @@ public static function isShowing(): bool } /** - * @unreleased retrieve licensed plugin slugs. + * @since 3.1.0 retrieve licensed plugin slugs. */ public static function getLicensedPluginSlugs(): array { @@ -208,7 +208,7 @@ public static function getLicensedPluginSlugs(): array } /** - * @unreleased determines user pricing plan from licensed plugin slugs. + * @since 3.1.0 determines user pricing plan from licensed plugin slugs. */ public static function getUserPricingPlan(): string { @@ -241,7 +241,7 @@ public static function getUserPricingPlan(): string } /** - * @unreleased return data by user pricing plan. + * @since 3.1.0 return data by user pricing plan. */ public static function getDataByPricingPlan($data): string { diff --git a/src/Promotions/InPluginUpsells/resources/js/sale-banner.js b/src/Promotions/InPluginUpsells/resources/js/sale-banner.js index 7e61d34065..00e95be797 100644 --- a/src/Promotions/InPluginUpsells/resources/js/sale-banner.js +++ b/src/Promotions/InPluginUpsells/resources/js/sale-banner.js @@ -4,7 +4,7 @@ const pageTitle = document.querySelector('.page-title-action, .wp-heading-inline const listTable = document.querySelector('#give-admin-donations-root, #give-admin-donation-forms-root, #give-admin-donors-root'); /** - * @unreleased show banner on ListTable pages. + * @since 3.1.0 show banner on ListTable pages. */ const hideBanner = ({target: dismissAction}) => { const formData = new FormData(); diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php index 090b15c5dd..e236cbb072 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/ChargeRefundedTest.php @@ -18,7 +18,7 @@ class ChargeRefundedTest extends TestCase use RefreshDatabase, HasMockStripeAccounts; /** - * @unreleased + * @since 3.1.0 * * @throws Exception */ diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php index 5e21f3493c..81cad77edd 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentFailedTest.php @@ -18,7 +18,7 @@ class PaymentIntentFailedTest extends TestCase use RefreshDatabase; /** - * @unreleased + * @since 3.1.0 * * @throws Exception */ diff --git a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php index 3730d7041c..2c71250434 100644 --- a/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php +++ b/tests/Feature/Gateways/Stripe/Webhooks/Listeners/PaymentIntentSucceededTest.php @@ -20,7 +20,7 @@ class PaymentIntentSucceededTest extends TestCase use RefreshDatabase; /** - * @unreleased + * @since 3.1.0 * * @throws Exception */ diff --git a/tests/Unit/Actions/GenerateDefaultDonationFormBlockCollectionTest.php b/tests/Unit/Actions/GenerateDefaultDonationFormBlockCollectionTest.php index cda7a7435f..76b519690c 100644 --- a/tests/Unit/Actions/GenerateDefaultDonationFormBlockCollectionTest.php +++ b/tests/Unit/Actions/GenerateDefaultDonationFormBlockCollectionTest.php @@ -7,12 +7,12 @@ use Give\Tests\TestCase; /** - * @unreleased + * @since 3.1.0 */ class GenerateDefaultDonationFormBlockCollectionTest extends TestCase { /** - * @unreleased + * @since 3.1.0 */ public function testShouldReturnDefaultBlockCollection(): void { @@ -22,7 +22,7 @@ public function testShouldReturnDefaultBlockCollection(): void } /** - * @unreleased + * @since 3.1.0 */ public function testShouldIncludeDefaultDonationAmountBlock(): void { @@ -62,7 +62,7 @@ public function testShouldIncludeDefaultDonationAmountBlock(): void } /** - * @unreleased + * @since 3.1.0 */ public function testShouldIncludeDefaultDonorNameBlock(): void { @@ -91,7 +91,7 @@ public function testShouldIncludeDefaultDonorNameBlock(): void } /** - * @unreleased + * @since 3.1.0 */ public function testShouldIncludeDefaultEmailBlock(): void { @@ -111,7 +111,7 @@ public function testShouldIncludeDefaultEmailBlock(): void } /** - * @unreleased + * @since 3.1.0 */ public function testShouldIncludeDefaultDonationSummaryBlock(): void { @@ -125,7 +125,7 @@ public function testShouldIncludeDefaultDonationSummaryBlock(): void } /** - * @unreleased + * @since 3.1.0 */ public function testShouldIncludeDefaultPaymentGatewaysBlock(): void {