avoid breaking change for other plugins by keeping $search_results

This commit is contained in:
Thomas Kempf 2022-07-20 10:58:19 +02:00 committed by Pierrick Le Gall
parent c36ca8712d
commit 7a3d0f2d89

View file

@ -1427,8 +1427,12 @@ function get_quick_search_results_no_cache($q, $options)
$search_results['qs']['matching_tags'] = $qsr->all_tags;
$search_results['qs']['matching_cats'] = $qsr->all_cats;
$ids = trigger_change('qsearch_results', $ids, $expression, $qsr);
$search_results = trigger_change('qsearch_results', $search_results, $expression, $qsr);
if(isset($search_results['items']))
{
$ids=array_merge($ids,$search_results['items']);
}
global $template;
if (empty($ids))