[wp-trac] Re: [WordPress Trac] #2721: Add filter for wp-db query
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 6 15:21:10 GMT 2006
#2721: Add filter for wp-db query
-----------------------------------+----------------------------------------
Reporter: filosofo | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Resolution:
Keywords: wp-db has-patch query |
-----------------------------------+----------------------------------------
Changes (by markjaquith):
* status: closed => reopened
* resolution: fixed =>
Comment:
While a user-replaceable DB class is nice, it's a poor solution to this
problem (being unable to use a plugin to do a simple str_replace() in a
SQL query.)
Any plugin that wants to filter a SQL query now has to have a complicated
two-file (and two-directory) install. It also means that only one plugin
can be filtering SQL queries at a time, as there can only be one
{{{db.php}}}
Even with the caveat that pre-plugin queries couldn't be filtered, this is
a useful addition.
Updated patches uploaded for 2.0.x and trunk. Is there a good reason that
this shouldn't go in?
--
Ticket URL: <http://trac.wordpress.org/ticket/2721#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list