Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#25348 closed enhancement (fixed)

Autocomplete for Add New Site → Admin Email

Reported by: helen Owned by:
Priority: normal Milestone: 3.9
Component: Networks and Sites Version:
Severity: normal Keywords: has-patch
Cc: Focuses: ui, multisite

Description

We have autocomplete for adding users to sites - we should do the same for the admin email for a new site.

Previously: #19810

Attachments (3)

25348.diff (3.4 KB ) - added by helen 13 years ago.
25348.2.diff (3.6 KB ) - added by helen 13 years ago.
25348.3.diff (4.0 KB ) - added by helen 13 years ago.

Download all attachments as: .zip

Change History (13)

#1 @jeremyfelt
13 years ago

  • Milestone Awaiting ReviewFuture Release

This makes sense. I always end up relying on browser input history and that's no fun.

We would need to figure out what that list should look like and then how to retrieve that data in advance. Emails of users that are registered on the current network?

#2 @helen
13 years ago

I imagine we could make it use the same Ajax search that adding users to a site uses, just need to be able to have user_email as the value instead of user_login.

@helen
13 years ago

@helen
13 years ago

#3 @helen
13 years ago

  • Keywords has-patch added

Gave it a run in 25348.2.diff. Had to switch to an explicit .each() in the JS (as opposed to relying on jQuery's implicit one) to have access to the element.

#4 @helen
13 years ago

  • Milestone Future Release3.9

#5 @jeremyfelt
13 years ago

25348.2.diff looks good and tests good. +1

As expected, it restricts the user search to members of the current "site". When in the network admin, the current site is the current network, so the search returns properly. If I was to create a new network, users from other networks would not return in the search.

It may be interesting to have a filter in there one day to allow for the members of multiple networks to be searched at once. I don't think that's today though. :)

It could also be nice to have an index on user_email in the DB, but it looks like we've been down that road in a couple tickets and the answer is an alter table when needed.

#6 @jeremyfelt
13 years ago

  • Component MultisiteNetworks and Sites
  • Focuses multisite added

@helen
13 years ago

#7 @helen
13 years ago

  • Resolutionfixed
  • Status newclosed

In 27046:

Autocomplete for the new site admin email. Better than trying to remember which email address you used.

fixes #25348.

#8 @helen
13 years ago

#15942 was marked as a duplicate.

This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.


13 years ago

This ticket was mentioned in IRC in #wordpress-dev by helen. View the logs.


13 years ago

Note: See TracTickets for help on using tickets.