alleyinteractive / alleyinteractive/wp-curate

Restrict context-driven blocks to a wp-curate ancestor

未关闭
#452 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
11
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

### Description

When the **wp-curate/post** and **wp-curate/post-title** blocks are inserted outside of a query context the blocks fall back to using the global `post`. We should restrict where these blocks are allowed to be inserted by declaring `wp-curate/query` as their block.json `ancestor`.

Additionally, imagining a scenario in which the **wp-curate/subquery** block needs to sit inside a design block, the subquery block should be updated to list **wp-curate/post** as an `ancestor`, rather than a `parent`.

### Use Case

To avoid confusion, certain wp-curate blocks should not be available for insertion outside the **wp-curate/query** block structure.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。