[wp-trac] [WordPress Trac] #14851: Add ¨searchform-{name}.php¨ support

WordPress Trac noreply at wordpress.org
Tue Sep 30 13:39:41 UTC 2014


#14851: Add ¨searchform-{name}.php¨ support
--------------------------------------------------+-----------------------
 Reporter:  ramiy                                 |       Owner:  nacin
     Type:  enhancement                           |      Status:  closed
 Priority:  normal                                |   Milestone:
Component:  Themes                                |     Version:  3.1
 Severity:  normal                                |  Resolution:  wontfix
 Keywords:  has-patch dev-feedback needs-testing  |     Focuses:  template
--------------------------------------------------+-----------------------

Comment (by ramiy):

 Guy's you can't say that two search forms are unnecessary, i have a site
 with 3 different search forms. I've seen sites that use different search
 forms in the header, sidebar and the footer. You can also create different
 search forms for desktop and mobile devices. Or create simple search form
 and another advance search with extra fields.

 And as for using `get_template_part()`, you can say all '''Include Tags'''
 are unnecessary ( `get_header()`, `get_footer()`, `get_sidebar()` ). We
 can replace all of them with `get_template_part()` but we don't do that.
 Each tag has it's purpose, so is  `get_search_form()`, i just want to
 extend it like all other include functions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14851#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list