[wp-trac] [WordPress Trac] #9908: get_search_form can only be used once

WordPress Trac wp-trac at lists.automattic.com
Fri May 22 15:35:12 GMT 2009


#9908: get_search_form can only be used once
--------------------------+-------------------------------------------------
 Reporter:  mtdewvirus    |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.8
Component:  Themes        |     Version:  2.8
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 get_search_form only works once on any given page view. It uses
 locate_template with the load option set to true. This calls
 load_template, which uses require_once to load the template file. Any more
 attempts to display the search form on a page will fail.

 Many themes will display the search form in the header area. If this is
 the case, the function doesn't work for Search widgets or if a search form
 is displayed on an error page.

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


More information about the wp-trac mailing list