#970 closed enhancement (invalid)
If "sanitized" slug matches existing plugin slug, return that first on plugin search
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | API | Keywords: | needs-patch |
| Cc: |
Description
Right now, WordPress's plugin search seems to based on the idea of matching the closeness of search terms to plugin titles. This can lead to problems when searching for a plugin like WooCommerce, which uses a plugin title of "WooCommerce - Excelling eCommerce".
When you search for "WooCommerce" right now you'll get a list of extensions before the actual plugin.
One way we can easily improve searches is to return the plugin (if it exists) with the same slug as the search term first, before we try to match titles.
This would allow search terms like "WooCommerce" to show WooCommerce first.
To run the slug comparison, the search term needs to be strtolower'd then str_replace spaces with -'s.
Looks like there was a momentary glitch there. Its working now. Closing as invalid