From 61f2296a75a721479777080aeb050ebbd48058e5 Mon Sep 17 00:00:00 2001 From: Foxaii Date: Thu, 1 Aug 2013 22:59:37 +0100 Subject: [PATCH] Search form support for WordPress 3.6+ --- lib/cleanup.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index 5759d9b..f966ca6 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -256,11 +256,11 @@ function roots_request_filter($query_vars) { add_filter('request', 'roots_request_filter'); /** - * Tell WordPress to use searchform.php from the templates/ directory + * Tell WordPress to use searchform.php from the templates/ directory. Requires WordPress 3.6+ */ -function roots_get_search_form($argument) { - if ($argument === '') { - locate_template('/templates/searchform.php', true, false); - } +function roots_get_search_form($form) { + $form = ''; + locate_template('/templates/searchform.php', true, false); + return $form; } add_filter('get_search_form', 'roots_get_search_form');