Skip to content

Commit

Permalink
fix crash around responsive controls in Hero block & revert version o…
Browse files Browse the repository at this point in the history
…f CB to 3.1.4
  • Loading branch information
aledesma-godaddy committed Nov 6, 2023
1 parent a94b186 commit 39b59fa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .dev/tests/phpunit/test-class-coblocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function test_constants() {
$reflection_method->invoke( coblocks() );

$expected = [
'version' => '3.1.5',
'version' => '3.1.4',
'plugin_dir' => str_replace( '.dev/tests/phpunit/', '', plugin_dir_path( __FILE__ ) ),
'plugin_url' => str_replace( '.dev/tests/phpunit/', '', plugin_dir_url( __FILE__ ) ),
'plugin_file' => str_replace( '.dev/tests/phpunit/test-class-coblocks.php', 'class-coblocks.php', __FILE__ ),
Expand Down
30 changes: 10 additions & 20 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
3.1.5 / 2023-11-06
===================
# Enhancements
* Compatibility changes for WP 6.4 [#2568](https://github.com/godaddy-wordpress/coblocks/pull/2568)

# Bug fix
* Fix performance around superfluous data-store selectors [#2575](https://github.com/godaddy-wordpress/coblocks/pull/2575)
* Fix missing animation scripts in some cases [#2576](https://github.com/godaddy-wordpress/coblocks/pull/2576)
* Fix php warning occurring in some cases [#2572](https://github.com/godaddy-wordpress/coblocks/pull/2572)

3.1.4 / 2023-09-07
===================
# Bug fix
# Bug fix
* Fix missing registered scripts [#2566](https://github.com/godaddy-wordpress/coblocks/pull/2566)

3.1.3 / 2023-08-28
===================
# Bug fix
* Fix text formatting bug [#2563](https://github.com/godaddy-wordpress/coblocks/pull/2563)
* Fix Lightbox for Masonry block [#2565](https://github.com/godaddy-wordpress/coblocks/pull/2565)
# Misc
# Bug fix
* Fix text formatting bug [#2563](https://github.com/godaddy-wordpress/coblocks/pull/2563)
* Fix Lightbox for Masonry block [#2565](https://github.com/godaddy-wordpress/coblocks/pull/2565)

# Misc
* Set supported version to 6.1 [#2564](https://github.com/godaddy-wordpress/coblocks/pull/2564)

3.1.2 / 2023-08-10
===================
# Bug fix
* Resolve Shape Divider bug [#2553](https://github.com/godaddy-wordpress/coblocks/pull/2553)
* Resolve Form Label warning [#2555](https://github.com/godaddy-wordpress/coblocks/pull/2555)
* Resolve Form Array condition [#2557](https://github.com/godaddy-wordpress/coblocks/pull/2557)
# Bug fix
* Resolve Shape Divider bug [#2553](https://github.com/godaddy-wordpress/coblocks/pull/2553)
* Resolve Form Label warning [#2555](https://github.com/godaddy-wordpress/coblocks/pull/2555)
* Resolve Form Array condition [#2557](https://github.com/godaddy-wordpress/coblocks/pull/2557)
* Fix Form name content order [#2558](https://github.com/godaddy-wordpress/coblocks/pull/2558)


Expand Down
4 changes: 2 additions & 2 deletions class-coblocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: CoBlocks is a suite of professional <strong>page building content blocks</strong> for the WordPress Gutenberg block editor. Our blocks are hyper-focused on empowering makers to build beautifully rich pages in WordPress.
* Author: GoDaddy
* Author URI: https://www.godaddy.com
* Version: 3.1.5
* Version: 3.1.4
* Text Domain: coblocks
* Domain Path: /languages
* Tested up to: 6.4
Expand All @@ -26,7 +26,7 @@
exit;
}

define( 'COBLOCKS_VERSION', '3.1.5' );
define( 'COBLOCKS_VERSION', '3.1.4' );
define( 'COBLOCKS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'COBLOCKS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'COBLOCKS_PLUGIN_FILE', __FILE__ );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "coblocks",
"title": "CoBlocks",
"description": "CoBlocks is a suite of professional page building blocks for the WordPress Gutenberg block editor.",
"version": "3.1.5",
"version": "3.1.4",
"tested_up_to": "6.4",
"requires_at_least": "6.2",
"author": "GoDaddy",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: page builder, Gutenberg blocks, WordPress blocks, gutenberg, blocks
Requires at least: 6.2
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 3.1.5
Stable tag: 3.1.4
License: GPL-2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
2 changes: 1 addition & 1 deletion src/components/responsive-base-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class ResponsiveBaseControl extends Component {
}
if ( tabName === 'default' ) {
const button = document.getElementsByClassName( `components-coblocks-dimensions-control__mobile-controls-item-${ type }--tablet` );
button[ 0 ].click();
button[ 0 ]?.click();
} else {
const button = document.getElementsByClassName( `components-coblocks-dimensions-control__mobile-controls-item-${ type }--${ selected }` );
button[ 0 ].style.display = 'block';
Expand Down

0 comments on commit 39b59fa

Please sign in to comment.