Skip to content

Commit

Permalink
chore: prepare for 2.21.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonTheAdams committed Jun 16, 2022
1 parent 5a08268 commit b68aab7
Show file tree
Hide file tree
Showing 47 changed files with 141 additions and 120 deletions.
6 changes: 3 additions & 3 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.20.2
* Version: 2.21.0
* Requires at least: 5.0
* Requires PHP: 7.0
* Text Domain: give
Expand Down Expand Up @@ -85,7 +85,7 @@
/**
* Main Give Class
*
* @unreleased Remove php dependency validation logic and constant
* @since 2.21.0 Remove php dependency validation logic and constant
* @since 2.19.6 add $donations, $subscriptions, and replace $donors class with DonorRepositoryProxy
* @since 2.8.0 build in a service container
* @since 1.0
Expand Down Expand Up @@ -294,7 +294,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '2.20.2');
define('GIVE_VERSION', '2.21.0');
}

// Plugin Root File.
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/tools/export/class-batch-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Give_Batch_Export extends Give_Export {
/**
* Give_Batch_Export constructor.
*
* @unreleased Create only csv file.
* @since 2.21.0 Create only csv file.
* @since 2.9.0 add hash to filename to avoid collisions
* @since 1.5
*
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/tools/export/export-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Process the download file generated by a batch export.
*
* @unreleased Sanitize file name. Allow plain file name only.
* @since 2.21.0 Sanitize file name. Allow plain file name only.
* @since 2.9.0 pass the filename received to the exporter
* @since 1.5
*
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/tools/export/export-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Process batch exports via ajax
*
* @unreleased Sanitize file name. Allow plain file name only.
* @since 2.21.0 Sanitize file name. Allow plain file name only.
* @since 1.5
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/class-give-readme-parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function requires_at_least()
}

/**
* @unreleased
* @since 2.21.0
*/
protected function get_readme_file_content(): string
{
Expand Down
2 changes: 1 addition & 1 deletion includes/donors/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Insert donor comment to donation.
*
* @unreleased remove anonymous
* @since 2.21.0 remove anonymous
* @since 2.2.0
*
* @param int $donation_id
Expand Down
2 changes: 1 addition & 1 deletion includes/forms/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function give_send_to_success_page( $query_string = null ) {
* @param array|string $args
*
* @access public
* @unreleased Auto set "payment-mode" in redirect url.
* @since 2.21.0 Auto set "payment-mode" in redirect url.
* @since 1.0
* @return Void
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/gateways/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function give_get_default_gateway( $form_id ) {
/**
* Returns the admin label for the specified gateway
*
* @unreleased remove hard coded admin_labels
* @since 2.21.0 remove hard coded admin_labels
* @since 1.0
*
* @param string $gateway Name of the gateway to retrieve a label for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Give_Stripe_Card {


/**
* @unreleased recover method for legacy give-recurring usage.
* @since 2.21.0 recover method for legacy give-recurring usage.
* @since 1.0
*
* Stripe uses it's own credit card form because the card details are tokenized.
Expand All @@ -49,7 +49,7 @@ class Give_Stripe_Card {
*/
public function addCreditCardForm( $form_id, $args, $echo = true ) {
$form = $this->getCreditCardFormHTML($form_id, $args);

if ( false !== $echo ) {
echo $form;
}
Expand Down
2 changes: 1 addition & 1 deletion includes/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function __give_get_tables()
* Register classes
* Note: only for internal purpose use
*
* @unreleased Install migration table on fresh install because this table is required to run migrations.
* @since 2.21.0 Install migration table on fresh install because this table is required to run migrations.
* @since 2.3.1
* @throws DatabaseMigrationException
*/
Expand Down
23 changes: 22 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.0
Requires PHP: 7.0
Stable tag: 2.20.2
Stable tag: 2.21.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -251,6 +251,27 @@ 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.21.0: June 16th, 2022 =
* New: Fresh new look for the Donor Wall block and shortcode!
* New: Form Grid looks has a great new look and more visual options!
* Enhancement: The new Gateway API now uses he new Models
* Enhancement: All failed queries are now logged with extra data to troubleshoot
* Enhancement: Some minor visual improvements on the Logs admin page
* Security: Remove an unused donor wall endpoint that made donor wall data too easy to access
* Security: Donors can no longer immediately access the Donor Dashboard without authentication
* Security: Further tightening of XSS protection per WordPress security guidelines
* Security: Tighten up file exposure to GiveWP Managers in the Exporter
* Fix: Prevent a notice and database error on fresh installs
* Fix: Cleared up some notices that logging was causing
* Fix: Admin notices no longer scrunch all weird-like up at the top of the page
* Fix: Further compatibility fixes for PHP 8.1
* Fix: Text aligns better for offline donations in the form
* Fix: Stripe gracefully ignores events that come in from another platform
* Fix: Brought back accidentally removed income goal stat filters. Thanks sc0ttkclark!
* Fix: Make sure that all donation errors are caught and gracefully handled to inform the donor
* Fix: Renewals now display the correct payment type in the admin donations list
* Fix: Checkboxes (also created via Form Field Manager) no longer require being checked when conditionally hidden

= 2.20.2: June 8th, 2022 =
* Security: Donors are no longer able to view the Donor Dashboard for the email they donated in without logging in
* Security: Added additional URL escaping around the codebase to protect against XSS attacks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Donation Forms Request Controller class
*
* @unreleased
* @since 2.21.0
*/
class DonationFormsRequestController
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Class DonationFormsResponseData
*
* @unreleased
* @since 2.21.0
*/
class DonationFormsResponseData implements Arrayable
{
Expand Down Expand Up @@ -63,7 +63,7 @@ class DonationFormsResponseData implements Arrayable
*
* @param object $form
*
* @unreleased
* @since 2.21.0
*/
public static function fromObject($form): self
{
Expand All @@ -87,7 +87,7 @@ public static function fromObject($form): self
/**
* Convert DTO to array
*
* @unreleased
* @since 2.21.0
*/
public function toArray(): array
{
Expand All @@ -99,7 +99,7 @@ public function toArray(): array
*
* @return array
*
* @unreleased
* @since 2.21.0
*/
private function getGoal(int $formId): array
{
Expand Down Expand Up @@ -137,7 +137,7 @@ private function getGoal(int $formId): array
*
* @return string
*
* @unreleased
* @since 2.21.0
*/
private function getFormAmount($form): string
{
Expand All @@ -158,7 +158,7 @@ private function getFormAmount($form): string
*
* @return string
*
* @unreleased
* @since 2.21.0
*/
private function formatAmount(string $amount): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/ValueObjects/DonationFormMetaKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Donation Form Meta keys
*
* @unreleased
* @since 2.21.0
*
* @method static DonationFormMetaKeys FORM_EARNINGS()
* @method static DonationFormMetaKeys DONATION_LEVELS()
Expand Down
8 changes: 4 additions & 4 deletions src/Donations/Controllers/DonationsRequestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Donations Request Controller class
*
* @unreleased
* @since 2.21.0
*/
class DonationsRequestController
{
Expand All @@ -28,7 +28,7 @@ public function __construct(WP_REST_Request $request)
}

/**
* @unreleased
* @since 2.21.0
*
* @return array
*/
Expand Down Expand Up @@ -68,7 +68,7 @@ public function getDonations(): array
}

/**
* @unreleased
* @since 2.21.0
*
* @return int
*/
Expand All @@ -84,7 +84,7 @@ public function getTotalDonationsCount(): int

/**
* @param QueryBuilder $query
* @unreleased
* @since 2.21.0
*
* @return QueryBuilder
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Donations/DataTransferObjects/DonationResponseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class DonationResponseData implements Arrayable
*
* @param object $donation
*
* @unreleased use meta keys as camelcase
* @since 2.21.0 use meta keys as camelcase
* @since 2.20.0
*/
public static function fromObject($donation): DonationResponseData
Expand Down Expand Up @@ -118,7 +118,7 @@ public function toArray(): array
/**
* Get donation type to display on front-end
*
* @unreleased refactor conditional for subscription renewals
* @since 2.21.0 refactor conditional for subscription renewals
* @since 2.20.0
* @param object $donation
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Donations/Factories/DonationNoteFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class DonationNoteFactory extends ModelFactory
{
/**
* @unreleased
* @since 2.21.0
*
* @return array
*/
Expand Down
18 changes: 9 additions & 9 deletions src/Donations/Models/DonationNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Give\Framework\Support\Facades\DateTime\Temporal;

/**
* @unreleased
* @since 2.21.0
*
* @property int $id
* @property int $donationId
Expand Down Expand Up @@ -42,7 +42,7 @@ class DonationNote extends Model implements ModelCrud, ModelHasFactory
];

/**
* @unreleased
* @since 2.21.0
*
* @return DonationNote|null
*/
Expand All @@ -53,7 +53,7 @@ public static function find($id)


/**
* @unreleased
* @since 2.21.0
*
* @return $this
* @throws Exception|InvalidArgumentException
Expand All @@ -68,7 +68,7 @@ public static function create(array $attributes): DonationNote
}

/**
* @unreleased
* @since 2.21.0
*
* @return void
* @throws Exception|InvalidArgumentException
Expand All @@ -83,7 +83,7 @@ public function save()
}

/**
* @unreleased
* @since 2.21.0
*
* @throws Exception|InvalidArgumentException
*/
Expand All @@ -93,7 +93,7 @@ public function delete(): bool
}

/**
* @unreleased
* @since 2.21.0
*
* @return ModelQueryBuilder<DonationNote>
*/
Expand All @@ -103,7 +103,7 @@ public static function query(): ModelQueryBuilder
}

/**
* @unreleased
* @since 2.21.0
*
* @return ModelQueryBuilder<Donation>
*/
Expand All @@ -113,7 +113,7 @@ public function donation(): ModelQueryBuilder
}

/**
* @unreleased
* @since 2.21.0
*
* @param object $object
*/
Expand All @@ -128,7 +128,7 @@ public static function fromQueryBuilderObject($object): DonationNote
}

/**
* @unreleased
* @since 2.21.0
*/
public static function factory(): DonationNoteFactory
{
Expand Down
Loading

0 comments on commit b68aab7

Please sign in to comment.