[wp-trac] [WordPress Trac] #39041: Installed themes search displays theme author names when the search term is a space
WordPress Trac
noreply at wordpress.org
Sat Mar 23 00:50:03 UTC 2019
#39041: Installed themes search displays theme author names when the search term is
a space
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Themes | Version: 3.9
Severity: normal | Resolution:
Keywords: has-screenshots good-first-bug has- | Focuses: javascript
patch needs-testing |
-------------------------------------------------+-------------------------
Changes (by hesyifei):
* keywords: has-screenshots good-first-bug needs-patch => has-screenshots
good-first-bug has-patch needs-testing
Comment:
I think we could `.trim()` the `term` before finding results. `.trim()` is
[https://developer.mozilla.org/en-
US/docs/Web/JavaScript/Reference/Global_Objects/String/trim#Browser_compatibility
supported] by all browsers (IE 9+).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39041#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list