diff --git a/src/Search.php b/src/Search.php index daba0e74a1..836aa61816 100644 --- a/src/Search.php +++ b/src/Search.php @@ -685,16 +685,16 @@ protected function set_context( &$context ) { protected function set_general_context( &$context ) { // Search context. - $context['posts'] = $this->posts; - $context['paged_posts'] = $this->paged_posts; - $context['current_page'] = $this->current_page; - $context['search_query'] = $this->search_query; - $context['selected_sort'] = $this->selected_sort; - $context['default_sort'] = self::DEFAULT_SORT; - $context['filters'] = $this->filters; - $context['found_posts'] = $this->total_matches; - $context['page_category'] = 'Search Page'; - $context['sort_options'] = [ + $context['posts'] = $this->posts; + $context['paged_posts'] = $this->paged_posts; + $context['current_page'] = $this->current_page; + $context['search_query'] = $this->search_query; + $context['selected_sort'] = $this->selected_sort; + $context['default_sort'] = self::DEFAULT_SORT; + $context['filters'] = $this->filters; + $context['found_posts'] = $this->total_matches; + $context['page_category'] = 'Search Page'; + $context['sort_options'] = [ '_score' => [ 'name' => __( 'Most relevant', 'planet4-master-theme' ), 'order' => 'DESC', diff --git a/templates/cookies.twig b/templates/cookies.twig index 5ca2912905..f952c39068 100644 --- a/templates/cookies.twig +++ b/templates/cookies.twig @@ -3,6 +3,6 @@