Search form support for WordPress 3.6+

This commit is contained in:
Foxaii
2013-08-01 22:59:37 +01:00
parent 16aad5478c
commit 61f2296a75

View File

@@ -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');