mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Autocomplete for the new site admin email. Better than trying to remember which email address you used.
fixes #25348. git-svn-id: https://develop.svn.wordpress.org/trunk@27046 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -106,6 +106,8 @@ if ( isset($_GET['update']) ) {
|
||||
$title = __('Add New Site');
|
||||
$parent_file = 'sites.php';
|
||||
|
||||
wp_enqueue_script( 'user-suggest' );
|
||||
|
||||
require( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
|
||||
?>
|
||||
@@ -138,7 +140,7 @@ if ( ! empty( $messages ) ) {
|
||||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><?php _e( 'Admin Email' ) ?></th>
|
||||
<td><input name="blog[email]" type="text" class="regular-text" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
|
||||
<td><input name="blog[email]" type="text" class="regular-text wp-suggest-user" data-autocomplete-type="search" data-autocomplete-field="user_email" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
|
||||
</tr>
|
||||
<tr class="form-field">
|
||||
<td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>
|
||||
|
||||
Reference in New Issue
Block a user