Skip to content

Commit ee5558b

Browse files
committed
4.2.3
- Skip loading during plugin activation sandbox - Pass $plugin instance to Updater - Update tests to run with Framework test plugin - Update Template System and Fields
1 parent 5ca86b6 commit ee5558b

File tree

5 files changed

+30
-13
lines changed

5 files changed

+30
-13
lines changed

readme.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ Tags:
1919

2020
== Changelog ==
2121

22+
= 4.2.3 =
23+
24+
Release Date: 2025-06-11
25+
26+
- ACF Repeater: Improve support for sort/filter by field
27+
- Translate internal keys used by ACF to actual field names
28+
- For field value comparison, ACF Date field is in format "Y-m-d" and DateTime field is "Y-m-d H:i:s"
29+
30+
= 4.2.2 =
31+
32+
Release Date: 2025-04-25
33+
34+
- Object cache: Support inline templates by not prepending metadata comment to cached content
35+
2236
= 4.2.1 =
2337

2438
Release Date: 2025-04-21

tangible-blocks.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Tangible Blocks
44
* Plugin URI: https://tangibleblocks.com/
55
* Description: Tangible Blocks is a system for universal blocks that work in Gutenberg, Elementor, Beaver Builder and beyond
6-
* Version: 4.2.1
6+
* Version: 4.2.3
77
* GitHub URI: TangibleInc/blocks
88
* Author: Team Tangible
99
* Author URI: https://teamtangible.com
@@ -12,7 +12,7 @@
1212
use tangible\framework;
1313
use tangible\updater;
1414

15-
define( 'TANGIBLE_BLOCKS_VERSION', '4.2.1' );
15+
define( 'TANGIBLE_BLOCKS_VERSION', '4.2.3' );
1616

1717
$module_path = is_dir(
1818
($path = __DIR__ . '/../../tangible') // Module
@@ -33,6 +33,9 @@ function tangible_blocks($instance = false) {
3333

3434
add_action('plugins_loaded', function() {
3535

36+
// See https://github.com/TangibleInc/framework/#note-on-plugin-activation
37+
if (defined('WP_SANDBOX_SCRAPING')) return;
38+
3639
$plugin = framework\register_plugin([
3740
'name' => 'tangible-blocks',
3841
'title' => 'Tangible Blocks',
@@ -48,11 +51,7 @@ function tangible_blocks($instance = false) {
4851

4952
tangible_blocks( $plugin );
5053

51-
updater\register_plugin([
52-
'name' => $plugin->name,
53-
'file' => __FILE__,
54-
// 'license' => ''
55-
]);
54+
updater\register_plugin( $plugin );
5655

5756
// Features loaded will have in their local scope: $plugin
5857

tests/now/.wp-env.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../.wp-env.json",
33
"mappings": {
4-
"wp-content/plugins/tangible-blocks": "../.."
4+
"wp-content/plugins/tangible-blocks": "../..",
5+
"wp-content/plugins/tangible-framework-test-plugin": "../../vendor/tangible/framework/tests/now"
56
}
67
}

tests/now/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ export default run(async () => {
3030

3131
test('Plugin', async () => {
3232

33-
result = await wpx`return test\\get_active_plugins();`
33+
result = await wpx`return test\\blocks\\get_active_plugins();`
3434
// console.log('Active plugins', result)
3535
is(true, result.includes('now/plugin.php'), 'test plugin is active')
3636

37-
result = await wpx`return test\\get_all_plugins();`
37+
result = await wpx`return test\\blocks\\get_all_plugins();`
3838
// console.log('All plugins', result)
3939

40-
result = await wpx`return test\\activate_dependency_plugins();`
40+
result = await wpx`return test\\blocks\\activate_dependency_plugins();`
4141
is(true, result, 'activate dependency plugins')
4242
})
4343

44-
await import(`../../vendor/tangible/framework/tests/index.ts`)
44+
await import(`../../vendor/tangible/framework/tests/now/index.ts`)
4545

4646
for (const key of [
4747
'loop',

tests/now/plugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Test plugin
44
*/
5-
namespace test;
5+
namespace test\blocks;
66

77
/**
88
* Get all plugins
@@ -36,6 +36,9 @@ function activate_dependency_plugins() {
3636
}
3737
$result = activate_plugin(ABSPATH . 'wp-content/plugins/tangible-blocks/tangible-blocks.php');
3838
if (is_wp_error($result)) return $result;
39+
40+
// Framework test plugin
41+
$result = activate_plugin(ABSPATH . 'wp-content/plugins/tangible-framework-test-plugin/index.php');
3942
}
4043

4144
if ( !get_option('site_init_done') ) {

0 commit comments

Comments
 (0)