Skip to content

Commit

Permalink
chore: prepare for 2.33.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
angelablake committed Aug 28, 2023
1 parent c703d4d commit 52d79d9
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 37 deletions.
2 changes: 1 addition & 1 deletion assets/src/js/frontend/paypal-commerce/SmartButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SmartButtons extends PaymentMethod {

/**
* Check if smart buttons can be shown.
* @unreleased
* @since 2.33.0
* @return {boolean}
*/
static canShow() {
Expand Down
2 changes: 1 addition & 1 deletion assets/src/js/frontend/paypal-commerce/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ document.addEventListener('DOMContentLoaded', () => {
}

/**
* @unreleased Add logic to reload PayPal SDK script for donation form.
* @since 2.33.0 Add logic to reload PayPal SDK script for donation form.
* @since 2.20.0
* @param {object} $form
*/
Expand Down
2 changes: 1 addition & 1 deletion assets/src/js/plugins/give-api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const Give = {
/**
* Get global param
*
* @unreleased Return default value of global param if param not found.
* @since 2.33.0 Return default value of global param if param not found.
* @since 2.2.4
*
* @return {object} WordPress localized global param.
Expand Down
4 changes: 2 additions & 2 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2.32.0
* Version: 2.33.0
* Requires at least: 5.0
* Requires PHP: 7.0
* Text Domain: give
Expand Down Expand Up @@ -316,7 +316,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '2.32.0');
define('GIVE_VERSION', '2.33.0');
}

// Plugin Root File.
Expand Down
2 changes: 1 addition & 1 deletion includes/gateways/stripe/includes/give-stripe-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ function give_stripe_is_source_type( $id, $type = 'src' ) {
/**
* This helper function is used to process Stripe payments.
*
* @unreleased no longer store the payment intent secret
* @since 2.33.0 no longer store the payment intent secret
* @since 2.5.0
*
* @param array $donation_data Donation form data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class="give-stripe-sepa-iban-field give-stripe-cc-field"
/**
* This function will be used for donation processing.
*
* @unreleased no longer store the intent secret in the database
* @since 2.33.0 no longer store the intent secret in the database
* @since 2.6.1
*
* @param array $donation_data List of donation data.
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.0
Stable tag: 2.32.0
Stable tag: 2.33.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -258,6 +258,12 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.

== Changelog ==
= 2.33.0: August 28th, 2023 =
* New: Admins can now select standard or advanced connection type during setup
* New: Added a new SubscriptionSynced command class
* New: Added PayPal Standard to PayPal Donations migration information banners
* Security: Remove uses of payment intent secret and existing meta

= 2.32.0: August 11th, 2023 =
* Feature: Scroll Stripe modal into view for Legacy + Multi-step forms
* Feature: Added check for application/json in form headers accept
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/V2/DonationFormsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function highlightAllFormsMenuItem()
/**
* Load scripts
*
* @unreleased Set admin script and style dependencies to display PayPal Standard to Donations Migration banner.
* @since 2.33.0 Set admin script and style dependencies to display PayPal Standard to Donations Migration banner.
*/
public function loadScripts()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
use function Give\Framework\Http\Response\response;

/**
* @unreleased
* @since 2.33.0
*/
class SubscriptionSyncedHandler
{
/**
* @unreleased
* @since 2.33.0
*
* @throws Exception
*/
Expand Down Expand Up @@ -53,7 +53,7 @@ public function __invoke(SubscriptionSynced $subscriptionSynced): JsonResponse
}

/**
* @unreleased
* @since 2.33.0
*/
private function getTransactionData(Donation $donation): array
{
Expand Down
12 changes: 6 additions & 6 deletions src/Framework/PaymentGateways/Commands/SubscriptionSynced.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@
use Give\Subscriptions\Models\Subscription;

/**
* @unreleased
* @since 2.33.0
*/
class SubscriptionSynced implements GatewayCommand
{
/**
* @unreleased
* @since 2.33.0
*
* @var Subscription
*/
public $subscription;

/**
* @unreleased
* @since 2.33.0
*
* @var array
*/
public $missingDonations;

/**
* @unreleased
* @since 2.33.0
*
* @var array
*/
public $presentDonations;

/**
* @unreleased
* @since 2.33.0
*
* @var string
*/
public $notice;

/**
* @unreleased
* @since 2.33.0
*
* @param Subscription $subscription Do not save the subscription, just return it so the API can see what's dirty
* @param Donation[] $missingDonations The missing donations added to the subscription
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function create(Donation $donation, Subscription $subscription, array $ga
}

/**
* @unreleased
* @since 2.33.0
*/
public function synchronizeSubscription(Subscription $subscription)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/PaymentGateways/PaymentGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function hasGatewayDashboardSubscriptionUrl(): bool
}

/**
* @unreleased Return synchronizeSubscription() instead nothing
* @since 2.33.0 Return synchronizeSubscription() instead nothing
* @since 2.21.2
* @inheritDoc
* @throws Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(array $paymentIntentArgs = [])
}

/**
* @unreleased no longer store the payment intent secret
* @since 2.33.0 no longer store the payment intent secret
* @since 2.19.0
*
* @throws InvalidPropertyName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Removes the secret meta that was unnecessarily stored in the database for donations.
*
* @unreleased
* @since 2.33.0
*/
class RemovePaymentIntentSecretMeta extends Migration
{
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentGateways/PayPalCommerce/AdminSettingFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ class="js-give-paypal-disconnect-paypal-account"
}

/**
* @unreleased
* @since 2.33.0
*/
private function getBanner(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
*
* This class is used to render banner on gateway settings page.
*
* @unreleased
* @since 2.33.0
*/
class GatewaySettingPageBanner
{
/**
* Setup hook.
* @unreleased
* @since 2.33.0
* @return void
*/
public function setupHook()
Expand All @@ -24,7 +24,7 @@ public function setupHook()

/**
* Render banner.
* @unreleased
* @since 2.33.0
* @return void
*/
public function render()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
/**
* Class GatewaySettingPageBanner
*
* @unreleased
* @since 2.33.0
*/
class PayPalDonationsSettingPageBanner
{
/**
* @unreleased
* @since 2.33.0
*/
public function render(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
*
* Note: This class uses notice api to disable the banner for the user.
*
* @unreleased
* @since 2.33.0
*/
class PayPalStandardToDonationsMigrationGlobalBanner
{
/**
* @unreleased
* @since 2.33.0
* @var string
*/
private $bannerId = 'PayPalStandardToDonationsMigrationGlobalBanner';

/**
* @unreleased
* @since 2.33.0
* @return void
*/
public function setHook()
Expand All @@ -45,7 +45,7 @@ public function setHook()
/**
* Render the banner.
*
* @unreleased
* @since 2.33.0
*/
public function getModalScript(): string
{
Expand Down Expand Up @@ -147,7 +147,7 @@ classes: {
}

/**
* @unreleased
* @since 2.33.0
* @return string
*/
private function getIcon(): string
Expand All @@ -158,7 +158,7 @@ private function getIcon(): string
}

/**
* @unreleased
* @since 2.33.0
* @return bool
*/
private function isBannerDisabledForUser(): bool
Expand Down
2 changes: 1 addition & 1 deletion src/PaymentGateways/PayPalCommerce/PayPalCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function createPayment(Donation $donation, $gatewayData): GatewayCommand
}

/**
* @unreleased Register new payment field type setting.
* @since 2.33.0 Register new payment field type setting.
* @since 2.27.3 Enable Venmo payment method by default.
* @since 2.16.2 Add setting "Transaction type".
*/
Expand Down
4 changes: 2 additions & 2 deletions src/PaymentGateways/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function boot()
}

/**
* @unreleased add RemovePaymentIntentSecretMeta migration
* @since 2.33.0 add RemovePaymentIntentSecretMeta migration
* @since 2.19.6
*/
private function registerMigrations()
Expand All @@ -89,7 +89,7 @@ private function registerMigrations()

/**
* This method registers the banners.
* @unreleased
* @since 2.33.0
* @return void
*/
private function registerPayPalDonationsMigrationBanners()
Expand Down

0 comments on commit 52d79d9

Please sign in to comment.