Commit 0418d0af authored by Noemie Kerroux's avatar Noemie Kerroux

Fix search_if_empty on false

parent ef72a59e
......@@ -20,7 +20,7 @@ class WPGlobalSearch {
'templates/search.php',
],
'posts_per_page' => (!empty($args['posts_per_page'])) ? $args['posts_per_page'] : 12,
'search_if_empty' => (!empty($args['search_if_empty'])) ? $args['search_if_empty'] : true,
'search_if_empty' => (isset($args['search_if_empty'])) ? $args['search_if_empty'] : true,
'multiple_words' => (isset($args['multiple_words'])) ? $args['multiple_words'] : true,
'taxonomies' => (!empty($args['taxonomies'])) ? $args['taxonomies'] : [],
'post_metas' => (!empty($args['post_metas'])) ? $args['post_metas'] : [],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment