[wp-trac] [WordPress Trac] #11608: wpdb->prepare() is broken
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 25 02:02:38 UTC 2009
#11608: wpdb->prepare() is broken
--------------------------+-------------------------------------------------
Reporter: hakre | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Database | Version: 2.9
Severity: normal | Keywords: has-patch tested
--------------------------+-------------------------------------------------
Comment(by dd32):
> If by not supported you mean "It's secure except we pay no attention to
the existence of arrays" then that sounds about right.
Garbage in, Garbage out.
But i have to eat my words.
You *can* pass an array of data. as in, $wpdb->prepare("sql..",
array('replacement1', 2, '3')); - Theres another ticket related to this
#11102
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11608#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list