[wp-meta] [Making WordPress.org] #970: If "sanitized" slug matches existing plugin slug, return that first on plugin search

Making WordPress.org noreply at wordpress.org
Mon Mar 23 00:11:07 UTC 2015


#970: If "sanitized" slug matches existing plugin slug, return that first on
plugin search
------------------------+---------------------
Reporter:  chriscct7    |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  normal       |  Component:  General
Keywords:               |
------------------------+---------------------
 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.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/970>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list