Opened 17 years ago
Closed 17 years ago
#7910 closed defect (bug) (fixed)
Search form should be a template tag
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | search template-tag |
| Focuses: | Cc: |
Description
The search form rarely changes from theme to theme, so it would be useful for theme developers to simply have a template tag get_search() similar to get_sidebar(), get_header() and get_footer() for use in themes.
This will also serve to standardize some of the annoying nuances of themes. In this patch, the function to display the form is supplied with a filter get_searchform which would allow plugin authors to modify the searchform or theme developers to bundle a more integrated search via the themes functions.php.
Attachments (5)
Change History (7)
Note: See
TracTickets for help on using
tickets.
change to get_search_form to avoid possible collision of function names with query