Query: Editor crashes when query attribute includes categoryIds
or tagIds
and the layout
attribute is applied
#51308
Labels
[Block] Query Loop
Affects the Query Loop Block
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Description
I believe this issue is related to changes made in #49050, perhaps here.
See the code example below. When you have a Query block that includes the deprecated sub-attributes
categoryIds
and/ortagIds
of thequery
attribute, and then thelayout
attribute is set, the Editor will crash. This is a particularly problematic regression because block themes in the WordPress.org repository have patterns built with these attributes.This issue is specific to trunk and 16.0 RC1. Gutenberg 15.9.1 works correctly.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: