[wp-trac] [WordPress Trac] #11608: wpdb->prepare() is broken
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 2 08:34:54 UTC 2010
#11608: wpdb->prepare() is broken
----------------------------------------------------+-----------------------
Reporter: hakre | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.0
Component: Database | Version: 2.9
Severity: critical | Resolution: fixed
Keywords: has-patch tested dev-feedback featured |
----------------------------------------------------+-----------------------
Changes (by dd32):
* status: new => closed
* resolution: => fixed
Comment:
I'm of the opinion that here we've gone as far as we can.
We can reinvent the wheel and make yet another prepare() method, or we can
simply accept that with the PHP versions we support, what we have works
acceptably as long as people understand how to use it.
In the future when we support MySQLi or PDO or some other form of
technology, then it will make sense to create a new ticket for that then.
In the meantime, if someone wants to re-invent a wheel, they may do so by
overriding the wpdb class through WP_CONTENT_DIR/db.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11608#comment:75>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list