[wp-trac] [WordPress Trac] #41983: Lead by example: pass unquoted placeholders to $wpdb->prepare()
WordPress Trac
noreply at wordpress.org
Thu Sep 28 14:58:36 UTC 2017
#41983: Lead by example: pass unquoted placeholders to $wpdb->prepare()
----------------------------+---------------------
Reporter: jrf | Owner: pento
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 4.9
Component: Database | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: docs
----------------------------+---------------------
Comment (by jrf):
@pento Thanks, that does make it clearer.
One further improvement suggestion regarding the wording:
-/- `Percentage wildcards (for example, to use in LIKE syntax) must be
passed in the string argument, it cannot be inserted in the query string.`
+/+ `Percentage wildcards (for example, to use in LIKE syntax) must be
passed via a substitution argument containing the complete LIKE string,
these cannot be inserted directly in the query string. Also see {@see
esc_like()}.`
/cc @GaryJ Is that phrasing clear enough or have you got a better
suggestion ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41983#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list