mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Add commentary about the posts_search filter. See #10667.
git-svn-id: https://develop.svn.wordpress.org/trunk@14603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3c7ca79f6e
commit
f782838830
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user