From 9a6456fa121db77759f5a2cde0f7d7df51cd2bc9 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Tue, 22 Apr 2014 22:28:32 -0500 Subject: [PATCH] Stop after first search plugin The sanity check should have caught any extra ones, but it doesn't hurt to be careful --- include/functions2.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions2.php b/include/functions2.php index 22c60236..959e7154 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -399,6 +399,7 @@ if ($search) { foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SEARCH) as $plugin) { list($search_query_part, $search_words) = $plugin->hook_search($search); + break; } // fall back in case of no plugins -- 2.39.5