Skip to content

Commit

Permalink
chore: prepare for 2.27.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
angelablake committed Jun 8, 2023
1 parent 7f05669 commit aaa6920
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 33 deletions.
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.27.2
* Version: 2.27.3
* 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.27.2');
define('GIVE_VERSION', '2.27.3');
}

// Plugin Root File.
Expand Down
17 changes: 16 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.2
Requires PHP: 7.0
Stable tag: 2.27.2
Stable tag: 2.27.3
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -258,6 +258,21 @@ 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.27.3: June 8th, 2023 =
* Feature: Support Slack-bot-based zip packaging requests
* Feature: Add ShowInAdmin trait to the Field API
* Feature: Add color parameter to give_goal shortcode
* Feature: Implement necessary tweaks to accommodate the Webhooks Add-on
* Feature: Add a recommendation for manual donations
* Feature: Update visibility conditions in the Field API to use new framework and handle validations
* Enhancement: Enable Venmo by default for PayPal Donations if available for country
* Enhancement: Add generics to container functions so autocomplete works when passing a class
* Fix: Improve error handling for fee recovery product recommendation on Settings page
* Fix: Display errors for PayPal Smart Buttons
* Fix: MoneyPHP support for Bitcoin currencies
* Refactor: Move legacy donation forms into v2 domain
* Chore: Remove redundent composer install

= 2.27.2: May 24th, 2023 =
* Fix: No errors are thrown for missing JavaScript files in the Payment Gateway Settings page.

Expand Down
2 changes: 1 addition & 1 deletion src/DonorDashboards/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
/**
* Handles updating relevant profile fields in donor database and meta database
*
* @unreleased Use Donor model to update data used by webhooks addon to prevent multiple events creation
* @since 2.27.3 Use Donor model to update data used by webhooks addon to prevent multiple events creation
* @since 2.10.0
*
* @param object $data Object representing profile data to update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Give\Vendors\StellarWP\FieldConditions\FieldCondition;

/**
* @unreleased change postData to an array
* @since 2.27.3 change postData to an array
* @since 2.21.0
*/
class DetermineVisibilityForRequest
Expand All @@ -22,7 +22,7 @@ class DetermineVisibilityForRequest
protected $postData;

/**
* @unreleased add parameter and return types
* @since 2.27.3 add parameter and return types
* @since 2.21.0
*/
public function __construct(Field $field, array $postData)
Expand Down Expand Up @@ -55,7 +55,7 @@ protected function fieldHasVisibilityConditions(): bool
}

/**
* @unreleased update to use FieldConditions
* @since 2.27.3 update to use FieldConditions
* @since 2.21.0
*/
protected function reduceVisibility(bool $visibility, Condition $condition): bool
Expand All @@ -68,7 +68,7 @@ protected function reduceVisibility(bool $visibility, Condition $condition): boo
}

/**
* @unreleased update to use FieldConditions
* @since 2.27.3 update to use FieldConditions
* @since 2.21.0
*/
protected function compareConditionWithOperator(Condition $condition): bool
Expand Down
24 changes: 12 additions & 12 deletions src/Framework/FieldsAPI/Concerns/HasVisibilityConditions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ trait HasVisibilityConditions
/**
* The node is visible by default. These are the conditions for it to remain visible.
*
* @unreleased update to use SimpleConditionSet
* @since 2.27.3 update to use SimpleConditionSet
* @since 2.13.0
*
* @var SimpleConditionSet
*/
protected $visibilityConditions;

/**
* @unreleased
* @since 2.27.3
*/
public function __construct()
{
Expand All @@ -37,7 +37,7 @@ public function __construct()
/**
* Get the visibility conditions.
*
* @unreleased update to use SimpleConditionSet
* @since 2.27.3 update to use SimpleConditionSet
* @since 2.13.0
*
* @return Condition[]
Expand All @@ -48,7 +48,7 @@ public function getVisibilityConditions(): array
}

/**
* @unreleased replace with native condition set method
* @since 2.27.3 replace with native condition set method
* @since 2.16.0
*/
public function hasVisibilityConditions(): bool
Expand All @@ -57,15 +57,15 @@ public function hasVisibilityConditions(): bool
}

/**
* @unreleased
* @since 2.27.3
*/
public function passesVisibilityConditions(array $values): bool
{
return $this->visibilityConditions->passes($values);
}

/**
* @unreleased
* @since 2.27.3
*/
public function failsVisibilityConditions(array $values): bool
{
Expand All @@ -75,7 +75,7 @@ public function failsVisibilityConditions(array $values): bool
/**
* Set a condition for showing the node.
*
* @unreleased update to use SimpleConditionSet
* @since 2.27.3 update to use SimpleConditionSet
* @since 2.13.0
*/
public function showIf(string $field, string $operator, $value, string $boolean = 'and'): self
Expand All @@ -94,7 +94,7 @@ public function showIf(string $field, string $operator, $value, string $boolean
/**
* Add an "or" visibility condition, useful when chained for readability.
*
* @unreleased
* @since 2.27.3
*/
public function orShowIf(string $field, string $operator, $value): self
{
Expand All @@ -108,7 +108,7 @@ public function orShowIf(string $field, string $operator, $value): self
/**
* Add an "and" visibility condition, useful when chained for readability.
*
* @unreleased
* @since 2.27.3
*/
public function andShowIf(string $field, string $operator, $value): self
{
Expand All @@ -122,7 +122,7 @@ public function andShowIf(string $field, string $operator, $value): self
/**
* Set multiple conditions for showing the node.
*
* @unreleased update to use FieldCondition
* @since 2.27.3 update to use FieldCondition
* @since 2.13.0
*
* @param FieldCondition|array ...$conditions
Expand All @@ -144,7 +144,7 @@ public function showWhen(...$conditions): self
*
* This also only adds the validation rule if the node has validation rules.
*
* @unreleased
* @since 2.27.3
*/
protected function updateValidationRules()
{
Expand All @@ -156,7 +156,7 @@ protected function updateValidationRules()
/**
* Normalize the condition if in array format.
*
* @unreleased update to use FieldCondition
* @since 2.27.3 update to use FieldCondition
* @since 2.13.0
*
* @param FieldCondition|array $condition
Expand Down
8 changes: 4 additions & 4 deletions src/Framework/FieldsAPI/Concerns/ShowInAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
namespace Give\Framework\FieldsAPI\Concerns;

/**
* @unreleased
* @since 2.27.3
*/
trait ShowInAdmin
{

/**
* @unreleased
* @since 2.27.3
*/
protected $showInAdmin = false;

/**
* @unreleased
* @since 2.27.3
*/
public function showInAdmin($showInAdmin = true): self
{
Expand All @@ -24,7 +24,7 @@ public function showInAdmin($showInAdmin = true): self
}

/**
* @unreleased
* @since 2.27.3
*/
public function shouldShowInAdmin(): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/FieldsAPI/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Give\Vendors\StellarWP\Validation\Concerns\HasValidationRules;

/**
* @unreleased add ShowInAdmin, ShowInReceipt, StoreAsMeta
* @since 2.27.3 add ShowInAdmin, ShowInReceipt, StoreAsMeta
* @since 2.17.0 allow fields to be macroable
* @since 2.12.0
* @since 2.13.0 Support visibility conditions
Expand Down
8 changes: 4 additions & 4 deletions src/Framework/Support/Facades/CurrencyFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CurrencyFacade
/**
* Immutably converts the given amount into the system currency.
*
* @unreleased updated to use aggregated currency list.
* @since 2.27.3 updated to use aggregated currency list.
*
* @since 2.20.0
*
Expand Down Expand Up @@ -51,7 +51,7 @@ public function convertToBaseCurrency(Money $amount, $exchangeRate = 1): Money
/**
* Creates a new Money instance from a decimal amount
*
* @unreleased updated to use aggregated currency list.
* @since 2.27.3 updated to use aggregated currency list.
*
* @since 2.20.0
*
Expand All @@ -76,7 +76,7 @@ public function formatToDecimal(Money $amount): string
/**
* Formats the amount to a currency format, including currency symbols, in the given locale.
*
* @unreleased updated to use aggregated currency list.
* @since 2.27.3 updated to use aggregated currency list.
*
* @since 2.24.2 fallback on give formatting system if intl extension is not available
* @since 2.20.0
Expand Down Expand Up @@ -127,7 +127,7 @@ public function getBaseCurrency(): Currency
/**
* Retrieves a list for all supported currencies.
*
* @unreleased
* @since 2.27.3
*/
private function getCurrenciesList(): Currencies
{
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 Enable Venmo payment method by default.
* @since 2.27.3 Enable Venmo payment method by default.
* @since 2.16.2 Add setting "Transaction type".
*/
public function getOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FieldConditionsServiceProvider implements ServiceProvider
/**
* {@inheritDoc}
*
* @unreleased
* @since 2.27.3
*/
public function register()
{
Expand All @@ -21,7 +21,7 @@ public function register()
/**
* {@inheritDoc}
*
* @unreleased
* @since 2.27.3
*/
public function boot()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testCanAccessVisibilityConditions()
}

/**
* @unreleased
* @since 2.27.3
*/
public function testCanCheckIfHasVisibilityConditions()
{
Expand Down

0 comments on commit aaa6920

Please sign in to comment.