Skip to content

chore(oauth): annotate core rest_url filter for Plugin Check - #130

Merged
ifahimreza merged 1 commit into
mainfrom
chore/130-plugin-check-rest-url-annotation
Aug 20, 2026
Merged

chore(oauth): annotate core rest_url filter for Plugin Check#130
ifahimreza merged 1 commit into
mainfrom
chore/130-plugin-check-rest-url-annotation

Conversation

@ifahimreza

Copy link
Copy Markdown
Contributor

One phpcs:ignore comment, no behavior change. Plugin Check (run against the built 1.0.0 zip for the .org submission) warns that apply_filters( 'rest_url', … ) in the new rest_url_early() is a non-prefixed hook name. It is core's own filter, applied deliberately with core's exact argument shape so the pre-init replica stays byte-identical to get_rest_url() (see #127 / #128). The annotation states that so the warning disappears from the submission scan.

Verified: composer lint clean; re-ran Plugin Check on the rebuilt zip — the rest_url warning is gone, only the two pre-existing warnings (vendored adapter hook in mcp-compat, dynamic hooks in the integration engine) remain.

🤖 Generated with Claude Code

https://claude.ai/code/session_016dGNUUe36hKi5o9hzFb3Cb

Plugin Check's prefix sniff flags applying a filter named rest_url.
It is core's own filter, applied with core's argument shape so the
pre-init replica stays byte-identical to get_rest_url() — annotate
rather than rename.

Refs #127
@ifahimreza
ifahimreza merged commit e3997cd into main Aug 20, 2026
1 of 7 checks passed
@ifahimreza
ifahimreza deleted the chore/130-plugin-check-rest-url-annotation branch August 20, 2026 18:53
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.

1 participant