Skip to content

Conversation

@rodrigoprimo
Copy link
Collaborator

Description

The sniff was checking cache function names incorrectly, as it was not considering that PHP function names are case-insensitive, leading to false positives.

Also includes two preparatory commits reorganizing the tests.

Suggested changelog entry

Fixed: WordPress.DB.DirectDatabaseQuery: ensure the sniff handles cache function names in a case-insensitive manner.

Doing this to allow for additional test case files.
…itive

The sniff was checking cache function names incorrectly, as it was not considering that PHP function names are case-insensitive, leading to false positives.
Copy link
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.

LGTM! Good catch @rodrigoprimo !

@jrfnl jrfnl added this to the 3.2.x milestone Sep 15, 2025
@dingo-d dingo-d merged commit e26eb87 into WordPress:develop Sep 16, 2025
96 of 107 checks passed
@dingo-d
Copy link
Member

dingo-d commented Sep 16, 2025

Should this be re-milestoned due to #2614?

@jrfnl jrfnl modified the milestones: 3.2.x, 3.3.0 Sep 16, 2025
@rodrigoprimo rodrigoprimo deleted the direct-database-query-case-insensitive branch September 16, 2025 17:28
@jrfnl
Copy link
Member

jrfnl commented Sep 16, 2025

Should this be re-milestoned due to #2614?

Yes and I did a bulk re-milestone, so should be okay now.

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