Skip to content

Fix block type registration in WordPress 6.8 (v2.x)#344

Merged
Log1x merged 1 commit intoLog1x:2.xfrom
harryscheiner:fix/block-type-registration
May 19, 2025
Merged

Fix block type registration in WordPress 6.8 (v2.x)#344
Log1x merged 1 commit intoLog1x:2.xfrom
harryscheiner:fix/block-type-registration

Conversation

@harryscheiner
Copy link
Contributor

Issue

#340 (comment)

Fix

Only add parent to the settings array if its value is not empty.

@Log1x Log1x merged commit 01096a5 into Log1x:2.x May 19, 2025
1 check failed
@harryscheiner harryscheiner changed the title Fix block type registration in WordPress 6.8 Fix block type registration in WordPress 6.8 (v2.x) May 19, 2025
@Twansparant
Copy link
Contributor

Great, can confirm this fixes the issue!
Thanks!

@mike-sheppard
Copy link
Contributor

possibly a related fix in ACF 6.4.2, just released https://www.advancedcustomfields.com/blog/acf-6-4-2/

Fix – Blocks registered via acf_register_block_type() with a parent value of null no longer fail to register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants