Ticket #17063: ticket.17063.diff
| File ticket.17063.diff, 474 bytes (added by ptahdunbar, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: wp-includes/general-template.php |
| 2 | =================================================================== |
| 3 | --- wp-includes/general-template.php (revision 17609) |
| 4 | +++ wp-includes/general-template.php (working copy) |
| 5 | @@ -149,6 +149,8 @@ |
| 6 | * @param boolean $echo Default to echo and not return the form. |
| 7 | */ |
| 8 | function get_search_form($echo = true) { |
| 9 | + $GLOBALS['echo'] = $echo; |
| 10 | + |
| 11 | do_action( 'get_search_form' ); |
| 12 | |
| 13 | $search_form_template = locate_template('searchform.php'); |
