[wp-trac] [WordPress Trac] #55431: add_theme_support for html5 on search-form not working

WordPress Trac noreply at wordpress.org
Mon Mar 21 15:27:06 UTC 2022


#55431: add_theme_support for html5 on search-form not working
---------------------------+------------------------------
 Reporter:  blackawxs      |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by joyously):

 The code is working as expected.
 The `get_search_form()` function first looks for a searchform.php file in
 the child or parent theme, and only if not found does it generate a form
 according to the `current_theme_supports` value for `html5`.
 Since the Twenty Twenty One theme supplies a searchform.php, that is what
 is output.

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


More information about the wp-trac mailing list