Skip to content
Browse files

Merge branch 'develop'

  • Loading branch information...
2 parents 3ccf5a9 + 9b86d15 commit f869d892573ba82dd9211107e7cd25f634e517c2 @prettyboymp prettyboymp committed Jan 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 wp-sphinx-search.php
View
6 wp-sphinx-search.php
@@ -67,7 +67,7 @@ public function initialize() {
*
* @param WP_Query $wp_query
*/
- public function parse_query(&$wp_query) {
+ public function parse_query($wp_query) {
if($wp_query->is_search) {
if(class_exists('SphinxClient')) {
switch($wp_query->get('sort')) {
@@ -177,7 +177,7 @@ private function test_settings() {
* @param int $found_posts
* @param WP_Query $wp_query
*/
- public function search_filter_found_posts($found_posts, &$wp_query = null) {
+ public function search_filter_found_posts($found_posts, $wp_query = null) {
if(!is_null($wp_query)) {
if(isset($wp_query->query_vars['sphinx_num_matches'])) {
$found_posts = intval($wp_query->query_vars['sphinx_num_matches']);
@@ -303,4 +303,4 @@ public static function uninstall() {
}
add_action('init', array(new WP_Sphinx_Search(), 'initialize'));
-register_uninstall_hook(__FILE__, array('WP_Sphinx_Search', 'uninstall'));
+register_uninstall_hook(__FILE__, array('WP_Sphinx_Search', 'uninstall'));

0 comments on commit f869d89

Please sign in to comment.
Something went wrong with that request. Please try again.