Close #638 - Add add_theme_support for Nice Search
This commit is contained in:
@@ -488,7 +488,9 @@ function roots_nice_search_redirect() {
|
||||
}
|
||||
}
|
||||
|
||||
add_action('template_redirect', 'roots_nice_search_redirect');
|
||||
if (current_theme_supports('nice-search')) {
|
||||
add_action('template_redirect', 'roots_nice_search_redirect');
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix for empty search queries redirecting to home page
|
||||
|
||||
@@ -8,6 +8,7 @@ add_theme_support('root-relative-urls'); // Enable relative URLs
|
||||
add_theme_support('rewrite-urls'); // Enable URL rewrites
|
||||
add_theme_support('h5bp-htaccess'); // Enable HTML5 Boilerplate's .htaccess
|
||||
add_theme_support('bootstrap-top-navbar'); // Enable Bootstrap's fixed navbar
|
||||
add_theme_support('nice-search'); // Enable /?s= to /search/ redirect
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user