-
Notifications
You must be signed in to change notification settings - Fork 466
fix: [regression] missing placeholder in $wpdb->prepare #3189
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
fix: [regression] missing placeholder in $wpdb->prepare #3189
Conversation
d90648f to
f593aba
Compare
|
@justlevine it looks like this change is breaking a few tests |
|
Yup, left a message in discord #maintainers. Got called into a meeting but tl;dr non-numbered %s get |
|
Code Climate has analyzed commit c21332f and detected 0 issues on this pull request. View more on Code Climate. |
|
Fixed in c21332f turns out numbered placeholders is the right move, just that |
|
When will there be a release including this fix? |
What does this implement/fix? Explain your changes.
This PR fixes a regression introduced in #3183 , where the lack of placeholders when interpolating the
$idsinto$wpdb->prepare()was throwing a_doing_it_wrong().Testing Instructions
Run a user query or a post query (since the post model preloads the author), and confirm no PHP Notice is thrown.
Does this close any currently open issues?
Any relevant logs, error output, GraphiQL screenshots, etc?
Any other comments?
While this is usually just a PHP notice in userland, it causes failing Codeception tests in later versions of wp-browser:
Where has this been tested?
Operating System: Ubuntu 20.04 (wsl2 + devilbox + php 8.2)
WordPress Version: 6.6.1