Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'develop'

  • Loading branch information...
commit f869d892573ba82dd9211107e7cd25f634e517c2 2 parents 3ccf5a9 + 9b86d15
@prettyboymp prettyboymp authored
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'));
Please sign in to comment.
Something went wrong with that request. Please try again.