Implement email and url input types where appropriate. Props Kau-Boy. Fixes #22183.

git-svn-id: https://develop.svn.wordpress.org/trunk@29030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2014-07-08 17:51:58 +00:00
parent c6428ff1ba
commit 0a4e8b2b7e
9 changed files with 29 additions and 23 deletions

View File

@@ -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>