From b7aeb666554296dd2fd8ab84b985ff821fc95780 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Thu, 6 Sep 2018 19:12:32 -0600 Subject: [PATCH] Revert "Add searchform partial and function to replace default WordPress functionality" --- app/filters.php | 25 ------------------- resources/views/partials/searchform.blade.php | 7 ------ 2 files changed, 32 deletions(-) delete mode 100644 resources/views/partials/searchform.blade.php diff --git a/app/filters.php b/app/filters.php index a612a42b4c..2af7fed951 100644 --- a/app/filters.php +++ b/app/filters.php @@ -13,11 +13,6 @@ } } - /** Add a global class to everything. - * We want it to come first, so stuff its filter does can be overridden. - */ - array_unshift($classes, 'app'); - /** Add class if sidebar is active */ if (display_sidebar()) { $classes[] = 'sidebar-primary'; @@ -81,23 +76,3 @@ return $comments_template; }, 100); - -/** - * Render WordPress searchform using Blade - */ -add_filter('get_search_form', function () { - return template('partials.searchform'); -}); - -/** - * Collect data for searchform. - */ -add_filter('sage/template/app/data', function ($data) { - return $data + [ - 'sf_action' => esc_url(home_url('/')), - 'sf_screen_reader_text' => _x('Search for:', 'label', 'sage'), - 'sf_placeholder' => esc_attr_x('Search …', 'placeholder', 'sage'), - 'sf_current_query' => get_search_query(), - 'sf_submit_text' => esc_attr_x('Search', 'submit button', 'sage'), - ]; -}); diff --git a/resources/views/partials/searchform.blade.php b/resources/views/partials/searchform.blade.php deleted file mode 100644 index d4b5847184..0000000000 --- a/resources/views/partials/searchform.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -