Skip to content

Commit

Permalink
chore: prepare for release 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein authored and Jon Waldstein committed Apr 10, 2024
1 parent cc3e4a6 commit e8f6db6
Show file tree
Hide file tree
Showing 33 changed files with 91 additions and 72 deletions.
11 changes: 11 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
== Changelog ==
= 3.7.0: April 10th, 2024 =
* New: Added pre-requisite form builder compatibility for upcoming constant contact add-on release
* New: Added phone number field to the donor details page, more updates for this field will come in future releases!
* Enhancement: Updated the form block option to select more available forms than the original limit of 10
* Enhancement: Updated the form builder left-side menu to open automatically when entering the build screen
* Security: Added sanitizing and escaping to shortcodes
* Fix: Resolved a conflict with GiveWP and WordPress bulk actions functionality

= 3.6.2: April 5th, 2024 =
* Fix: Resolved an issue with WordPress 6.5 and the visual form builder that was making it difficult to interact with blocks

= 3.6.1: March 21st, 2024 =
* Fix: Resolved an issue with PayPal donations and currency switcher on donation forms using the visual form builder

Expand Down
6 changes: 3 additions & 3 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
* Author: GiveWP
* Author URI: https://givewp.com/
* Version: 3.6.2
* Requires at least: 6.0
* Version: 3.7.0
* Requires at least: 6.3
* Requires PHP: 7.2
* Text Domain: give
* Domain Path: /languages
Expand Down Expand Up @@ -404,7 +404,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '3.6.2');
define('GIVE_VERSION', '3.7.0');
}

// Plugin Root File.
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/donors/donor-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Processes a donor edit.
*
* @unreleased Add support to the "phone" field
* @since 3.7.0 Add support to the "phone" field
* @since 1.0
*
* @param array $args The $_POST array being passed.
Expand Down Expand Up @@ -132,7 +132,7 @@ function give_edit_donor( $args ) {
* @param array $args The sanitized data submitted.
* @param int $donor_id The donor ID.
*
* @unreleased
* @since 3.7.0
*/
do_action('give_admin_donor_details_updating', $args, $donor->id);

Expand Down
2 changes: 1 addition & 1 deletion includes/admin/donors/donors.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function give_render_donor_view( $view, $callbacks ) {
/**
* View a donor
*
* @unreleased Add "phone" field
* @since 3.7.0 Add "phone" field
* @since 1.0
*
* @param Give_Donor $donor The Donor object being displayed.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public static function print_frontend_errors( $errors ) {
* Print frontend notice.
* Notice: notice type can be success/error/warning
*
* @unreleased Escape attributes
* @since 3.7.0 Escape attributes
* @since 1.8.9
* @access public
*
Expand Down
2 changes: 1 addition & 1 deletion includes/donors/class-give-donor-wall.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function setup_actions() {
/**
* Displays donors in a grid layout.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 2.27.0 Moved AJAX nonce verification to ajax_handler method.
* @since 2.2.0
*
Expand Down
4 changes: 2 additions & 2 deletions includes/misc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2628,7 +2628,7 @@ function give_get_page_by_title(string $page_title, string $output = OBJECT, str
/**
* @see https://github.com/jackocnr/intl-tel-input
*
* @unreleased
* @since 3.7.0
*/
function give_get_intl_tel_input(string $value, string $id, string $class = '', string $name = ''):string {

Expand Down Expand Up @@ -2719,7 +2719,7 @@ function readyHandler() {
}

/**
* @unreleased
* @since 3.7.0
*/
function give_get_intl_tel_input_i18n_json_object() {

Expand Down
18 changes: 9 additions & 9 deletions includes/shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* Displays a user's donation history.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 3.1.0 pass form id by reference in give_totals shortcode.
* @since 1.0
*
Expand Down Expand Up @@ -133,7 +133,7 @@ function give_donation_history( $atts, $content = false ) {
*
* Show the Give donation form.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 3.4.0 Add additional validations to check if the form is valid and has the 'published' status.
* @since 2.30.0 Add short-circuit filter to allow for custom output.
* @since 1.0
Expand Down Expand Up @@ -213,7 +213,7 @@ function give_form_shortcode( $atts ) {
*
* Show the Give donation form goals.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 3.4.0 Add additional validations to check if the form is valid and has the 'published' status.
* @since 1.0
*
Expand Down Expand Up @@ -271,7 +271,7 @@ function give_goal_shortcode( $atts ) {
* Shows a login form allowing users to users to log in. This function simply
* calls the give_login_form function to display the login form.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 1.0
*
* @param array $atts Shortcode attributes.
Expand Down Expand Up @@ -306,7 +306,7 @@ function give_login_form_shortcode( $atts ) {
*
* Shows a registration form allowing users to users to register for the site.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 1.0
*
* @param array $atts Shortcode attributes.
Expand Down Expand Up @@ -335,7 +335,7 @@ function give_register_form_shortcode( $atts ) {
*
* Shows a donation receipt.
*
* @unreleased Sanitize and escape attributes
* @since 3.7.0 Sanitize and escape attributes
* @since 1.0
*
* @param array $atts Shortcode attributes.
Expand Down Expand Up @@ -411,7 +411,7 @@ function give_receipt_shortcode( $atts ) {
* folder. Please visit the Give Documentation for more information on how the
* templating system is used.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 1.0
*
* @param array $atts Shortcode attributes.
Expand Down Expand Up @@ -626,7 +626,7 @@ function give_process_profile_editor_updates( $data ) {
*
* Shows a donation total.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 2.1
*
* @param array $atts Shortcode attributes.
Expand Down Expand Up @@ -835,7 +835,7 @@ static function ($id) {
/**
* Displays donation forms in a grid layout.
*
* @unreleased Sanitize attributes
* @since 3.7.0 Sanitize attributes
* @since 2.1.0
*
* @since 3.1.0 Use static function on array_map callback to pass the id as reference for _give_redirect_form_id to prevent warnings on PHP 8.0.1 or plus
Expand Down
14 changes: 11 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: givewp, dlocc, webdevmattcrom, ravinderk, mehul0810, kevinwhoffman, jason_the_adams, henryholtgeerts, kbjohnson90, alaca, benmeredithgmailcom, jonwaldstein, joshuadinh, glaubersilvawp, pauloiankoski
Donate link: https://go.givewp.com/home
Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 6.0
Requires at least: 6.3
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 3.6.2
Stable tag: 3.7.0
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -167,7 +167,7 @@ Here’s a few ways you can contribute to GiveWP:

= Minimum Requirements =

* WordPress 6.0 or greater
* WordPress 6.3 or greater
* PHP version 7.2 or greater
* MySQL version 5.7 or greater
* MariaDB version 10 or later
Expand Down Expand Up @@ -262,6 +262,14 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
10. Use almost any payment gateway integration with GiveWP through our add-ons or by creating your own add-on.

== Changelog ==
= 3.7.0: April 10th, 2024 =
* New: Added pre-requisite form builder compatibility for upcoming constant contact add-on release
* New: Added phone number field to the donor details page, more updates for this field will come in future releases!
* Enhancement: Updated the form block option to select more available forms than the original limit of 10
* Enhancement: Updated the form builder left-side menu to open automatically when entering the build screen
* Security: Added sanitizing and escaping to shortcodes
* Fix: Resolved a conflict with GiveWP and WordPress bulk actions functionality

= 3.6.2: April 5th, 2024 =
* Fix: Resolved an issue with WordPress 6.5 and the visual form builder that was making it difficult to interact with blocks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface FormOption extends Form {
}

/**
* @unreleased Increase the per_page attribute to 100 to accommodate for more forms.
* @since 3.7.0 Increase the per_page attribute to 100 to accommodate for more forms.
* @since 3.2.0 include isLegacyForm, isLegacyFormTemplate & link.
* @since 3.0.0
*/
Expand Down
4 changes: 2 additions & 2 deletions src/DonationForms/Properties/FormSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ class FormSettings implements Arrayable, Jsonable
*/
public $designSettingsImageOpacity;

/* @unreleased
/* @since 3.7.0
* @var string
*/
public $formExcerpt;

/**
* @unreleased Added formExcerpt
* @since 3.7.0 Added formExcerpt
/**
* @since 3.2.0 Added registrationNotification
Expand Down
4 changes: 2 additions & 2 deletions src/DonationForms/Repositories/DonationFormRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getById(int $id)
}

/**
* @unreleased Add post_excerpt to the list of fields being inserted
* @since 3.7.0 Add post_excerpt to the list of fields being inserted
* @since 3.0.0
*
* @return void
Expand Down Expand Up @@ -147,7 +147,7 @@ public function insert(DonationForm $donationForm)
}

/**
* @unreleased Add post_excerpt to the list of fields being updated
* @since 3.7.0 Add post_excerpt to the list of fields being updated
* @since 3.0.0
*
* @param DonationForm $donationForm
Expand Down
4 changes: 2 additions & 2 deletions src/Donors/Actions/UpdateAdminDonorDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
/**
* This class allows us to use the Donor model to update data from the donor profile admin legacy page without adding new code directly to the legacy codebase.
*
* @unreleased
* @since 3.7.0
*/
class UpdateAdminDonorDetails
{
/**
* @unreleased
* @since 3.7.0
*
* @throws Exception
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Donors/DataTransferObjects/DonorQueryData.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ final class DonorQueryData
/**
* Convert data from donor object to Donor Model
*
* @unreleased Add "phone" property
* @since 3.7.0 Add "phone" property
* @since 2.24.0 add $totalAmountDonated and $totalNumberOfDonations
* @since 2.20.0 add donor prefix property
* @since 2.19.6
Expand Down
2 changes: 1 addition & 1 deletion src/Donors/Factories/DonorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class DonorFactory extends ModelFactory
{
/**
* @unreleased Add "phone" property
* @since 3.7.0 Add "phone" property
* @since 2.19.6
*/
public function definition(): array
Expand Down
10 changes: 5 additions & 5 deletions src/Donors/Migrations/AddPhoneColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
use Give\Framework\Migrations\Exceptions\DatabaseMigrationException;

/**
* @unreleased
* @since 3.7.0
*/
class AddPhoneColumn extends Migration
{
/**
* @unreleased
* @since 3.7.0
*
* @throws DatabaseMigrationException
*/
Expand All @@ -35,23 +35,23 @@ public function run()
}

/**
* @unreleased
* @since 3.7.0
*/
public static function id(): string
{
return 'donors-add-phone-column';
}

/**
* @unreleased
* @since 3.7.0
*/
public static function title(): string
{
return 'Add phone column to donors table';
}

/**
* @unreleased
* @since 3.7.0
*/
public static function timestamp()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Donors/Models/Donor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Class Donor
*
* @unreleased Add "phone" property
* @since 3.7.0 Add "phone" property
* @since 2.24.0 add new properties $totalAmountDonated and $totalNumberOfDonations
* @since 2.19.6
*
Expand Down
6 changes: 3 additions & 3 deletions src/Donors/Repositories/DonorRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getAdditionalEmails(int $donorId)
}

/**
* @unreleased Add support to "phone" property
* @since 3.7.0 Add support to "phone" property
* @since 2.24.0 add support for $donor->totalAmountDonated and $donor->totalNumberOfDonation
* @since 2.21.0 add actions givewp_donor_creating and givewp_donor_created
* @since 2.20.0 mutate model and return void
Expand Down Expand Up @@ -177,7 +177,7 @@ public function insert(Donor $donor)
}

/**
* @unreleased Add support to "phone" property
* @since 3.7.0 Add support to "phone" property
* @since 2.24.0 add support for $donor->totalAmountDonated and $donor->totalNumberOfDonation
* @since 2.23.1 use give()->donor_meta to update meta so data is upserted
* @since 2.21.0 add actions givewp_donor_updating and givewp_donor_updated
Expand Down Expand Up @@ -374,7 +374,7 @@ public function getByAdditionalEmail(string $email)
}

/**
* @unreleased Add support to "phone" property
* @since 3.7.0 Add support to "phone" property
* @since 2.24.0 replace ModelQueryBuilder with DonorModelQueryBuilder
* @since 2.19.6
*
Expand Down
2 changes: 1 addition & 1 deletion src/Donors/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function register()
/**
* @inheritDoc
*
* @unreleased Register "AddPhoneColumn" migration and add the "give_admin_donor_details_updating" action
* @since 3.7.0 Register "AddPhoneColumn" migration and add the "give_admin_donor_details_updating" action
*/
public function boot()
{
Expand Down
2 changes: 1 addition & 1 deletion src/FormBuilder/ViewModels/FormBuilderViewModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class FormBuilderViewModel
{
/**
* @unreleased Add support to isExcerptEnabled key in the compared array
* @since 3.7.0 Add support to isExcerptEnabled key in the compared array
* @since 3.2.0 Add nameTitlePrefixes key to the returned array
* @since 3.0.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type GoalTypeOption = {
};

/**
* @unreleased Added isExcerptEnabled
* @since 3.7.0 Added isExcerptEnabled
* @since 3.0.0
*/
interface FormBuilderWindowData {
Expand Down
Loading

0 comments on commit e8f6db6

Please sign in to comment.