Make WordPress Core

Changeset 25284


Ignore:
Timestamp:
09/06/2013 05:07:00 PM (11 years ago)
Author:
nacin
Message:

Document the 'query' filter in wp-db.

props natejacobs.
see #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r24872 r25284  
    11811181        if ( ! $this->ready )
    11821182            return false;
    1183 
    1184         // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
     1183        /**
     1184         * Filter the database query.
     1185         *
     1186         * Some queries are made before the plugins have been loaded, and thus cannot be filtered with this method.
     1187         *
     1188         * @since 2.1.0
     1189         * @param string $query Database query.
     1190         */
    11851191        $query = apply_filters( 'query', $query );
    11861192
Note: See TracChangeset for help on using the changeset viewer.