[wp-trac] [WordPress Trac] #34886: Search Form should not submit empty strings
WordPress Trac
noreply at wordpress.org
Sun Dec 6 21:49:30 UTC 2015
#34886: Search Form should not submit empty strings
-------------------------+------------------------------
Reporter: gibrown | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by gibrown):
Thanks @westonruter. Will rework html5 version to use "require" (thanks,
wasn't aware of that), and the JS to use jQuery on submit.
> the JS should be loaded from a JS file instead of inlined to PHP
Seems like a performance impact to potentially load another JS file for
such a small number of lines of code. Is there an existing file you would
suggest adding this to? I think I heard mentioned that the only place
where js is loaded is separately on the front end is for comments.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34886#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list