Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025

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