[wp-trac] [WordPress Trac] #16541: get_search_form() ignores $echo argument if searchform.php exists

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 27 10:38:05 UTC 2011


#16541: get_search_form() ignores $echo argument if searchform.php exists
------------------------------------+------------------------------
 Reporter:  kawauso                 |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Template                |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------
Changes (by shawnkhall):

 * cc: shawnkhall (added)


Comment:

 It would be good if locate_template were hookable. Immediately inside the
 locate_template function it should have something like this:

 {{{
 $template_names = apply_filter( 'locate_template', $template_names );
 }}}

 This would enable plugins and themes to bypass behavior of certain core
 functions, such as get_search_form() without having to rewrite core.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16541#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list