Add commentary about the posts_search filter. See #10667.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-13 17:34:43 +00:00
parent 067fc117cb
commit 175c994615

View File

@ -1843,6 +1843,8 @@ class WP_Query {
$search .= " AND ($wpdb->posts.post_password = '') ";
}
}
// Allow plugins to contextually add/remove/modify the search section of the database query
$search = apply_filters_ref_array('posts_search', array( $search, &$this ) );
// Category stuff