Skip to content

Pattern directory: scope front-end pattern capabilities to the creator UI - #767

Merged
obenland merged 1 commit into
trunkfrom
update/pattern-caps-request-context
Aug 31, 2026
Merged

Pattern directory: scope front-end pattern capabilities to the creator UI#767
obenland merged 1 commit into
trunkfrom
update/pattern-caps-request-context

Conversation

@obenland

Copy link
Copy Markdown
Member

set_pattern_caps() grants the front-end pattern capabilities to logged-in network users so the REST-based creator UI works without every user holding a role on the site. Those submissions are validated on rest_pre_insert_wporg-pattern.

This scopes the grant to that intended context: for XML-RPC requests the filter now returns the capabilities unchanged, so the front-end caps aren't provisioned outside the creator UI flow. No effect on the REST creator, wp-admin, or CLI paths.

🤖 Generated with Claude Code

Copilot AI lite review requested due to automatic review settings August 31, 2026 16:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…r UI

The front-end capability grant in set_pattern_caps() is intended for the
REST-based creator UI, which validates submissions on rest_pre_insert. Return
the caps unchanged for XML-RPC requests so they are not provisioned outside
that path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@obenland
obenland force-pushed the update/pattern-caps-request-context branch from 78decba to ffcb3b5 Compare August 31, 2026 17:59
@obenland
obenland merged commit 5954ac2 into trunk Aug 31, 2026
4 checks passed
@obenland
obenland deleted the update/pattern-caps-request-context branch August 31, 2026 18:04
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.

2 participants