Skip to content

Security/ValidatedSanitizedInput: add tests for namespaced names#2709

Merged
GaryJones merged 1 commit into
WordPress:developfrom
rodrigoprimo:validated-sanitized-input-tests
Apr 23, 2026
Merged

Security/ValidatedSanitizedInput: add tests for namespaced names#2709
GaryJones merged 1 commit into
WordPress:developfrom
rodrigoprimo:validated-sanitized-input-tests

Conversation

@rodrigoprimo
Copy link
Copy Markdown
Contributor

Description

In preparation for PHPCS 4.0, which changes the tokenization of namespaced names, this PR adds tests with all forms of namespaced function calls (partially qualified, fully qualified, and namespace-relative using the namespace keyword) as well as fully qualified global function calls to the WordPress.Security.ValidatedSanitizedInput sniff.

Suggested changelog entry

N/A

@rodrigoprimo rodrigoprimo force-pushed the validated-sanitized-input-tests branch from 3f3bce0 to 7022365 Compare March 20, 2026 12:05
Copy link
Copy Markdown
Member

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @rodrigoprimo !

@jrfnl jrfnl added this to the 3.4.0 milestone Mar 20, 2026
@rodrigoprimo
Copy link
Copy Markdown
Contributor Author

@GaryJones and @dingo-d, would either of you be available to review this PR? It already has one approval. Thanks.

@GaryJones GaryJones merged commit 2781d2c into WordPress:develop Apr 23, 2026
31 checks passed
@rodrigoprimo rodrigoprimo deleted the validated-sanitized-input-tests branch April 23, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants