]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/wp-db.php
Wordpress 3.7
[autoinstalls/wordpress.git] / wp-includes / wp-db.php
index 2398002e323dcc9519f71a29a972113a83688d1f..068351b76644d3fc311345c4e0af3a1aed2e89e8 100644 (file)
@@ -1180,8 +1180,14 @@ class wpdb {
        function query( $query ) {
                if ( ! $this->ready )
                        return false;
-
-               // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
+               /**
+                * Filter the database query.
+                *
+                * Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
+                *
+                * @since 2.1.0
+                * @param string $query Database query.
+                */
                $query = apply_filters( 'query', $query );
 
                $return_val = 0;