All pastes #1897385 Raw Edit

Search Everything 6.5.2 patch fo

public diff v1 · immutable
#1897385 ·published 2010-07-09 18:11 UTC
rendered paste body
Index: trunk/search-everything.php===================================================================--- trunk/search-everything.php	(revision 262032)+++ trunk/search-everything.php	(working copy)@@ -124,7 +124,7 @@ 			$this->se_log("searching authors"); 		} -		add_filter('posts_where', array(&$this, 'se_search_where'));+		add_filter('posts_search', array(&$this, 'se_search_where'));  		add_filter('posts_where', array(&$this, 'se_no_revisions')); @@ -194,13 +194,7 @@ 		} 		if ($searchQuery != '') 		{-			$index1 = strpos($where, '((');-			$index2 = strrpos($where, ')) ');-			$firstPart = substr($where, 0, $index1);-			$secondPart = substr($where, $index1, $index2-1);-			$lastPart = substr($where, $index2-1+3);-			$where = $firstPart."(".$secondPart.$searchQuery.")".$lastPart;-+			$where = str_replace( ")))", ")$searchQuery))", $where ); 		} 		if ($this->options['se_exclude_posts_list'] != '') 		{