diff --git a/give.php b/give.php index 66e87d6a3b..e8eeba0dd3 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: 2.27.2 + * Version: 2.27.3 * Requires at least: 5.0 * Requires PHP: 7.0 * Text Domain: give @@ -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. diff --git a/readme.txt b/readme.txt index 3a233e143b..30d5a06a16 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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. diff --git a/src/DonorDashboards/Profile.php b/src/DonorDashboards/Profile.php index 19fe46abed..bad476ec46 100644 --- a/src/DonorDashboards/Profile.php +++ b/src/DonorDashboards/Profile.php @@ -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 diff --git a/src/Form/LegacyConsumer/Actions/DetermineVisibilityForRequest.php b/src/Form/LegacyConsumer/Actions/DetermineVisibilityForRequest.php index 1c375b3a6d..9e7053ae7a 100644 --- a/src/Form/LegacyConsumer/Actions/DetermineVisibilityForRequest.php +++ b/src/Form/LegacyConsumer/Actions/DetermineVisibilityForRequest.php @@ -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 @@ -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) @@ -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 @@ -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 diff --git a/src/Framework/FieldsAPI/Concerns/HasVisibilityConditions.php b/src/Framework/FieldsAPI/Concerns/HasVisibilityConditions.php index 2971604d46..a843b9d988 100644 --- a/src/Framework/FieldsAPI/Concerns/HasVisibilityConditions.php +++ b/src/Framework/FieldsAPI/Concerns/HasVisibilityConditions.php @@ -19,7 +19,7 @@ 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 @@ -27,7 +27,7 @@ trait HasVisibilityConditions protected $visibilityConditions; /** - * @unreleased + * @since 2.27.3 */ public function __construct() { @@ -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[] @@ -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 @@ -57,7 +57,7 @@ public function hasVisibilityConditions(): bool } /** - * @unreleased + * @since 2.27.3 */ public function passesVisibilityConditions(array $values): bool { @@ -65,7 +65,7 @@ public function passesVisibilityConditions(array $values): bool } /** - * @unreleased + * @since 2.27.3 */ public function failsVisibilityConditions(array $values): bool { @@ -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 @@ -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 { @@ -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 { @@ -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 @@ -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() { @@ -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 diff --git a/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php b/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php index df145d904b..7b0a0755a5 100644 --- a/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php +++ b/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php @@ -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 { @@ -24,7 +24,7 @@ public function showInAdmin($showInAdmin = true): self } /** - * @unreleased + * @since 2.27.3 */ public function shouldShowInAdmin(): bool { diff --git a/src/Framework/FieldsAPI/Field.php b/src/Framework/FieldsAPI/Field.php index 31225b8ba6..706c639878 100644 --- a/src/Framework/FieldsAPI/Field.php +++ b/src/Framework/FieldsAPI/Field.php @@ -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 diff --git a/src/Framework/Support/Facades/CurrencyFacade.php b/src/Framework/Support/Facades/CurrencyFacade.php index 490e9254d6..033005a660 100644 --- a/src/Framework/Support/Facades/CurrencyFacade.php +++ b/src/Framework/Support/Facades/CurrencyFacade.php @@ -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 * @@ -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 * @@ -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 @@ -127,7 +127,7 @@ public function getBaseCurrency(): Currency /** * Retrieves a list for all supported currencies. * - * @unreleased + * @since 2.27.3 */ private function getCurrenciesList(): Currencies { diff --git a/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php b/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php index 478a0df148..cba5a73c92 100644 --- a/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php +++ b/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php @@ -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() diff --git a/src/VendorOverrides/FieldConditions/FieldConditionsServiceProvider.php b/src/VendorOverrides/FieldConditions/FieldConditionsServiceProvider.php index 90d2abedce..ea83670ac4 100644 --- a/src/VendorOverrides/FieldConditions/FieldConditionsServiceProvider.php +++ b/src/VendorOverrides/FieldConditions/FieldConditionsServiceProvider.php @@ -11,7 +11,7 @@ class FieldConditionsServiceProvider implements ServiceProvider /** * {@inheritDoc} * - * @unreleased + * @since 2.27.3 */ public function register() { @@ -21,7 +21,7 @@ public function register() /** * {@inheritDoc} * - * @unreleased + * @since 2.27.3 */ public function boot() { diff --git a/tests/Unit/Framework/FieldsAPI/Concerns/HasVisibilityConditionsTest.php b/tests/Unit/Framework/FieldsAPI/Concerns/HasVisibilityConditionsTest.php index ec6ec75de4..a62333056e 100644 --- a/tests/Unit/Framework/FieldsAPI/Concerns/HasVisibilityConditionsTest.php +++ b/tests/Unit/Framework/FieldsAPI/Concerns/HasVisibilityConditionsTest.php @@ -18,7 +18,7 @@ public function testCanAccessVisibilityConditions() } /** - * @unreleased + * @since 2.27.3 */ public function testCanCheckIfHasVisibilityConditions() {