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

WordPress Trac noreply at wordpress.org
Tue Sep 30 13:45:52 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 nacin):

 Replying to [comment:21 ramiy]:
 > 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.

 And we almost did, but it complicated because of the existing do_action()
 calls.

 > Each tag has it's purpose, so is  `get_search_form()`, i just want to
 extend it like all other include functions.

 We can't, though, because it has an existing second argument. So I'm
 inclined to not do anything here for now.

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


More information about the wp-trac mailing list