WordPress.org

Make WordPress Core

Changeset 4620


Ignore:
Timestamp:
12/07/2006 12:02:24 AM (14 years ago)
Author:
markjaquith
Message:

Add überpowerful "query" filter, for SQL queries. fixes #2721

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/wp-db.php

    r4225 r4620  
    132132
    133133    function query($query) {
     134        // filter the query, if filters are available
     135        // NOTE: some queries are made before the plugins have been loaded, and thus cannot be filtered with this method
     136        if ( function_exists('apply_filters') )
     137            $query = apply_filters('query', $query);
     138
    134139        // initialise return
    135140        $return_val = 0;
Note: See TracChangeset for help on using the changeset viewer.