Skip to content

Commit

Permalink
Merge branch 'hotfix/wp-65-compatibility' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Apr 4, 2024
2 parents a58376c + 65157f8 commit 0dfa1d8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 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: 3.6.1
* Version: 3.6.2
* Requires at least: 6.0
* Requires PHP: 7.2
* Text Domain: give
Expand Down Expand Up @@ -404,7 +404,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '3.6.1');
define('GIVE_VERSION', '3.6.2');
}

// Plugin Root File.
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: givewp, dlocc, webdevmattcrom, ravinderk, mehul0810, kevinwhoffman
Donate link: https://go.givewp.com/home
Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 6.0
Tested up to: 6.4
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 3.6.1
Stable tag: 3.6.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -262,6 +262,9 @@ 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.6.2: April 4th, 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
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ import {__} from "@wordpress/i18n";


/**
* @since 3.6.2 Early return dispatchFormBlocks if there are no unwrapped blocks.
* @since 3.0.0
*/
export default function BlockEditorContainer() {
const {blocks} = useFormState();
const dispatch = useFormStateDispatch();
const dispatchFormBlocks = (blocks) => {
const hasUnwrappedBlocks = blocks.some((block) => block.name !== 'givewp/section');

if (!hasUnwrappedBlocks) {
return dispatch(setFormBlocks(blocks));
}

dispatch(setFormBlocks(blocks.map((block) => {
return block.name == 'givewp/section'
? block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
font-size: 16px !important;
font-weight: normal;
line-height: 20px;
height: auto;
}

.components-select-control__input {
Expand Down

0 comments on commit 0dfa1d8

Please sign in to comment.