Skip to content

docs: state that WpContext flags are request-derived, not authorization - #24

Merged
brianvarskonst merged 2 commits into
mainfrom
docs/wp-context-not-authorization
Oct 23, 2026
Merged

brianvarskonst merged 2 commits into
mainfrom
docs/wp-context-not-authorization

Conversation

@brianvarskonst

Copy link
Copy Markdown
Member

Finding

Review finding K-S2 (informational): WpContext::determine() derives isRest() / isLogin() from request data ($_GET['rest_route'], $_REQUEST['interim-login'], script name). That is correct for context detection, but a consumer could mistake the flags for a trust signal.

Change

Documentation only: docs/dependency-injection.md now states next to the WpContext injection example that the flags are request-derived and must never be used as an authorization check.

@brianvarskonst
brianvarskonst merged commit b95e6a4 into main Oct 23, 2026
3 checks passed
@brianvarskonst
brianvarskonst deleted the docs/wp-context-not-authorization branch October 23, 2026 22:25
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