Skip to content

Flush the query results variables following strip_invalid_text_from_query() #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Feb 28, 2023

Flush the query results variables following strip_invalid_text_from_query() to ensure queries from that function does not get returned to the caller function.

This changeset to wpdb was never added to to HyperDB.

18 months ago I merged it to our HyperDB on WordPress.org, but appear to have failed to create a PR here, and don't recall what I was fixing at the time. It appears it was likely causing PHP Notices somehow or causing problems in the WordPress.org stats.

Based on the core bug it was fixing, it appears it may also affect some unit tets.

@pento I don't suppose you recall any details of the above changeset, and if/why/not it should be added to HyperDB too?

…uery() to ensure queries from that function does not get returned to the caller function.

This merges ​https://core.trac.wordpress.org/changeset/31093 to HyperDB.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

hj-collab added a commit to hj-collab/HyperDB that referenced this pull request May 31, 2023
@hj-collab hj-collab mentioned this pull request May 31, 2023
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