[wp-trac] [WordPress Trac] #57566: Issue registering blocks within a parent theme
WordPress Trac
noreply at wordpress.org
Wed Jul 5 15:30:20 UTC 2023
#57566: Issue registering blocks within a parent theme
-------------------------------------------------+-------------------------
Reporter: jacknotman | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.3
Component: Editor | Version: 6.1.1
Severity: major | Resolution:
Keywords: has-patch needs-testing needs- | Focuses:
testing-info |
-------------------------------------------------+-------------------------
Comment (by leprincenoir):
Hello,
Here's how to reproduce the bug.
You need :
- a parent theme with blocks made with block.json
- then a child theme: with nothing in it (that's enough)
- activate the child theme and check whether the parent's blocks work
For the example, I've added 2 zips:
[https://core.trac.wordpress.org/attachment/ticket/57566/parent.zip
parent.zip] and
[https://core.trac.wordpress.org/attachment/ticket/57566/child.zip
child.zip] 2 themes to reproduce the bug.
Simply download the 2 themes and activate the child theme.
Then test adding the "Todo List" block to see the errors in the console.
(script errors, block not found).
And if you activate the parent theme, everything works correctly.
With @guillaumeturpin's PR, the problem is correctly corrected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57566#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list