[wp-trac] [WordPress Trac] #56503: PHP error on get_search_form() (was: PHP error on get_searh_form())

WordPress Trac noreply at wordpress.org
Fri Sep 2 16:53:08 UTC 2022


#56503: PHP error on get_search_form()
--------------------------+------------------------------
 Reporter:  seansmyth     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Description changed by sabernhardt:

Old description:

> When using a seach form like below,
>
>    echo get_search_form();
> or
>  get_search_form();
>

> a php error occurs.
>
> Warning: Undefined array key "echo" in /Users/sean/Local
> Sites/normanmccluskey/app/public/wp-includes/general-template.php on line
> 363

New description:

 When using a search form like below,

 `echo get_search_form();`

 or

 `get_search_form();`


 a php error occurs.

 `Warning: Undefined array key "echo" in .../wp-includes/general-
 template.php on line 363`

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56503#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list