[wp-trac] [WordPress Trac] #16014: Search wildcards should only affect multisite

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 30 21:53:26 UTC 2010


#16014: Search wildcards should only affect multisite
----------------------------------+------------------
 Reporter:  nacin                 |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  3.1
Component:  Users                 |     Version:
 Severity:  normal                |  Resolution:
 Keywords:  regression has-patch  |
----------------------------------+------------------

Comment (by ryan):

 WP_User_Query::prepare_query() trims leading and trailing asterisks and
 passes wild = trailing | leading | both to get_search_sql() accordingly.
 WP_Users_List_Table::prepare_items() always adds leading and trailing
 asterisks to the search term.  WP_MS_Users_List_Table::prepare_items()
 allows user to pass a trailing asterisk in the search and strips all other
 asterisks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16014#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list