Opened 18 years ago
Closed 18 years ago
#7910 closed defect (bug) (fixed)
Search form should be a template tag
| Reported by: | technosailor | Owned by: | technosailor |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | search template-tag |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
change to get_search_form to avoid possible collision of function names with query