diff --git a/wp-includes/query.php b/wp-includes/query.php index 996cdcba3..23944d6fe 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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