Skip to content

Commit dc956eb

Browse files
committed
Merge branch 'release/2.2.8'
2 parents ad1031f + 0f805f7 commit dc956eb

File tree

11 files changed

+3774
-3992
lines changed

11 files changed

+3774
-3992
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## v2.2.8 - 05/07/2024
6+
7+
* Fix: Issue causing some non-admin AJAX requests to the REST API from being run through protection checks.
8+
* Fix: Error when using page template rules & global $post is not set properly.
9+
510
## v2.2.7 - 03/20/2024
611

712
- Improvement: Fix plugin preview blueprint file location.

classes/Controllers/Frontend/Blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function has_block_controls( $block ) {
7070
'enabled' => false,
7171
] );
7272

73-
return ! ! $controls['enabled'];
73+
return (bool) $controls['enabled'];
7474
}
7575

7676
/**

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "code-atlantic/content-control",
3-
"version": "2.2.7",
3+
"version": "2.2.8",
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0-or-later",
66
"minimum-stability": "dev",
@@ -15,7 +15,7 @@
1515
"phpstan/phpstan": "^1.10.62",
1616
"szepeviktor/phpstan-wordpress": "v1.3.3",
1717
"phpstan/extension-installer": "^1.3.1",
18-
"phpunit/phpunit": "^10.5.2",
18+
"phpunit/phpunit": "10.4.0",
1919
"mockery/mockery": "^1.6.6",
2020
"brain/monkey": "^2.6.1",
2121
"php-stubs/woocommerce-stubs": "v8.6.1",

0 commit comments

Comments
 (0)