[wp-trac] Re: [WordPress Trac] #2721: Add filter for wp-db query
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 1 14:26:36 GMT 2006
#2721: Add filter for wp-db query
-----------------------------------+----------------------------------------
Reporter: filosofo | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: Administration | Version: 2.1
Severity: normal | Resolution:
Keywords: wp-db has-patch query |
-----------------------------------+----------------------------------------
Comment (by masquerade):
PHP allows you to override methods in child classes. You would first make
a class that extends wpdb, (preferably while sharing the same connection,
it can be done), and $wpdb = new My_wpdb; This allows much more
flexibility than just adding a filter on the queries.
--
Ticket URL: <http://trac.wordpress.org/ticket/2721>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list