[wp-trac] [WordPress Trac] #7910: Search form should be a template tag

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 17 19:57:33 GMT 2008


#7910: Search form should be a template tag
--------------------------+-------------------------------------------------
 Reporter:  technosailor  |       Owner:  technosailor       
     Type:  defect        |      Status:  new                
 Priority:  normal        |   Milestone:  2.8                
Component:  General       |     Version:                     
 Severity:  normal        |    Keywords:  search template-tag
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7910>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list