[wp-trac] [WordPress Trac] #54042: Extending wpdb::prepare() to support table/field names, and IN() operator
WordPress Trac
noreply at wordpress.org
Tue Aug 9 02:59:37 UTC 2022
#54042: Extending wpdb::prepare() to support table/field names, and IN() operator
-------------------------------------------------+-------------------------
Reporter: craigfrancis | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Database | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback needs- | Focuses:
testing early has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by jrf):
For what it's worth: I like and support using the `...` syntax as it feels
intuitive to use with its likeness to the spread operator.
Only question I'd have (though I haven't looked at the patch yet) is how
this would interact with other potential modifiers. Like using `%04d` to
get `0` padded numbers in the replacement values.
Note: if that would not be supported, that wouldn't be a blocker IMO, as
in that case, people who really need that can still fall back to the "old"
recommended code pattern for creating the replacement values.
I look forward to seeing this feature land!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54042#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list