Found a fix for that behavior: You have to add a method and a plugin hook registration to the plugin:
After the Constructor SearchEverything() { … } add the following:
// Exclude post revisions
function SE4_no_revisions($where) {
global $wp_query;
if (!empty($wp_query->query_vars['s'])) {
where = 'AND (' . substr($where, strpos($where, 'AND')+3) . ') AND post_type != \'revision\'';
}
return $where;
}
Afterwards you may register the method in the constructor itself. Add the follwing line to the constructor:
function SearchEverything(){
...
// Add registration of bo_revisions hook handler
// right before the following line already existant
add_filter('posts_where', array(&$this, 'SE4_no_revisions'));
//Duplicate fix provided by Tiago.Pocinho
add_filter('posts_request', array(&$this, 'SE4_distinct'));
}
Greets from Salzburg,
Johannes