DataViews: Duplicating an uncategorized pattern causes a JavaScript error #66888
Closed
4 of 6 tasks
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Type] Bug
An existing feature does not function as intended
Description
Originally reported on Trac: https://core.trac.wordpress.org/ticket/62367
I am able to reproduce this problem on WordPress 6.7-RC4-59375 with any theme that registers patterns without the
categories
parameter.I tested this by removing the categories parameter from a pattern in Twenty Twenty-One, which is a classic theme that registers patterns with the PHP function, and in Twenty Twenty-Four, a block theme that registers patterns by using the
patterns
folder.With and without Gutenberg trunk active.
The
categories
parameter is not required for registering a pattern, and this should not cause an error.https://developer.wordpress.org/block-editor/reference-guides/block-api/block-patterns/#register_block_pattern
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.7-RC4-59375
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: