Permalink
Browse files

add query string text

  • Loading branch information...
matzko committed Mar 17, 2011
1 parent 224515a commit 609cd2a3f86e3c93c4e257d8c324023b99cd670d
Showing with 3 additions and 1 deletion.
  1. +3 −1 includes/wp-lite-autosuggest.php
@@ -27,6 +27,7 @@ public function get_results_from_query( $query = '', $extras = array() )
{
$query_obj = $this->model->build_query( $extras );
$query_obj->query = $query;
+ $results = $this->model->perform_query( $query_obj );
}
}
@@ -53,7 +54,7 @@ public function build_query( $data = array() )
public function perform_query( WP_Lite_Autosuggest_Query $qry )
{
$qry = apply_filters( 'wpl_autosuggest_query_object', $qry );
- $results = $qry->execute();
+ return $qry->execute();
}
}
@@ -87,6 +88,7 @@ public function execute()
'showposts' => $this->limit,
'post_status' => implode(',', $this->post_statuses ),
'post_type' => $this->post_types,
+ 's' => $this->query,
) );
$results = new WP_Lite_Autosuggest_Query_Results;

0 comments on commit 609cd2a

Please sign in to comment.