Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#17063 closed defect (bug) (duplicate)

Pass echo parameter to searchform.php template

Reported by: ptahdunbar's profile ptahdunbar Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords: has-patch
Focuses: Cc:

Description

get_search_form() checks for a searchform.php template to override the search form, however it doesn't pass on the $echo parameter. The searchform.php template won't know whether to echo or return the form causing unexpected layout issues.

Patch makes the $echo parameter a global so the template can accomodate accordingly.

Attachments (1)

ticket.17063.diff (474 bytes) - added by ptahdunbar 14 years ago.

Download all attachments as: .zip

Change History (3)

#1 @kawauso
14 years ago

Related/Duplicate: #16541

#2 @nacin
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing as a duplicate. This alternative solution should be added there.

Note: See TracTickets for help on using tickets.