summaryrefslogtreecommitdiffstats
path: root/wp-includes/wp-db.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 17:08:28 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 17:08:28 +0000
commit91725f574d4fa83b30d8d7c2794e9f078628e6da (patch)
tree91b5731e827229ea359c667d1125f5e68f868708 /wp-includes/wp-db.php
parentf9d5ef9fbb062b0c44c09207f947b515ab6dc66e (diff)
downloadwordpress-mu-91725f574d4fa83b30d8d7c2794e9f078628e6da.tar.gz
wordpress-mu-91725f574d4fa83b30d8d7c2794e9f078628e6da.tar.xz
wordpress-mu-91725f574d4fa83b30d8d7c2794e9f078628e6da.zip
Filter queries
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@822 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wp-db.php')
-rw-r--r--wp-includes/wp-db.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php
index 06682f2..ceab53f 100644
--- a/wp-includes/wp-db.php
+++ b/wp-includes/wp-db.php
@@ -182,6 +182,11 @@ class wpdb {
// Basic Query - see docs for more detail
function query($query) {
+ // filter the query, if filters are available
+ // NOTE: some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
+ if ( function_exists('apply_filters') )
+ $query = apply_filters('query', $query);
+
// initialise return
$return_val = 0;
$this->flush();