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

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 12 11:53:21 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        |   Keywords:
--------------------------+-----------------------------
 If a theme has searchform.php present, `get_search_form()` uses
 `require()` regardless of the `$echo` value.

 As per discussion with nacin in IRC, the only workaround for this would be
 use output buffering (which would also allow for searchform.php to be
 passed through the 'get_search_form' filter).

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


More information about the wp-trac mailing list