WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#17063 closed defect (bug) (duplicate)

Pass echo parameter to searchform.php template

Reported by: ptahdunbar Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords: has-patch
Focuses: Cc:
PR Number:

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 9 years ago.

Download all attachments as: .zip

Change History (3)

#1 @kawauso
9 years ago

Related/Duplicate: #16541

#2 @nacin
9 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.