Implement email and url input types where appropriate. Props Kau-Boy. Fixes #22183.
Built from https://develop.svn.wordpress.org/trunk@29030 git-svn-id: http://core.svn.wordpress.org/trunk@28818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -85,7 +85,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
|
||||
<div class="wrap">
|
||||
<h2><?php echo esc_html( $title ); ?></h2>
|
||||
<form method="post" action="settings.php">
|
||||
<form method="post" action="settings.php" novalidate="novalidate">
|
||||
<?php wp_nonce_field( 'siteoptions' ); ?>
|
||||
<h3><?php _e( 'Operational Settings' ); ?></h3>
|
||||
<table class="form-table">
|
||||
@@ -99,7 +99,7 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
<tr>
|
||||
<th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>
|
||||
<td>
|
||||
<input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" />
|
||||
<input name="admin_email" type="email" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ) ?>" />
|
||||
<p class="description">
|
||||
<?php _e( 'This email address will receive notifications. Registration and support emails will also come from this address.' ); ?>
|
||||
</p>
|
||||
|
||||
@@ -119,7 +119,7 @@ if ( ! empty( $messages ) ) {
|
||||
foreach ( $messages as $msg )
|
||||
echo '<div id="message" class="updated"><p>' . $msg . '</p></div>';
|
||||
} ?>
|
||||
<form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>">
|
||||
<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
|
||||
<?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
|
||||
<table class="form-table">
|
||||
<tr class="form-field form-required">
|
||||
@@ -140,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 wp-suggest-user" data-autocomplete-type="search" data-autocomplete-field="user_email" title="<?php esc_attr_e( 'Email' ) ?>"/></td>
|
||||
<td><input name="blog[email]" type="email" 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