[wp-trac] [WordPress Trac] #18160: Auto-suggest usernames on views for adding user to site

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 22 01:09:53 UTC 2011


#18160: Auto-suggest usernames on views for adding user to site
-----------------------------------+-----------------------------
 Reporter:  danielbachhuber        |       Owner:  PeteMall
     Type:  feature request        |      Status:  accepted
 Priority:  normal                 |   Milestone:  Future Release
Component:  Multisite              |     Version:  3.2
 Severity:  normal                 |  Resolution:
 Keywords:  needs-patch 3.4-early  |
-----------------------------------+-----------------------------

Comment (by boonebgorges):

 OK, here's a first go at it. I've applied some minimal styling (including
 a spinner) - someone with a better eye will probably want take the CSS for
 a spin, to make it better match the rest of the admin.

 Re: scaling - I do two WP_User_Querys: one to get users of the current
 blog, so that they can be excluded from the main query. That obviously
 affects efficiency. That extra query could pretty easily be cut out,
 without (I think) much loss in functionality. A good future enhancement
 for WP_User_Query would be to add blog_id__in and blog_id__not_in params,
 which could be put to good use here.

 Hope this is a helpful start.

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


More information about the wp-trac mailing list