X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/a6f44f0edcda2471c5a33e4156c1c9488c7f3210..refs/tags/wordpress-3.7:/wp-includes/wp-db.php diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2398002e..068351b7 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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;