<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[29030] trunk/src: Implement email and url input types where appropriate.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/29030">29030</a></dd>
<dt>Author</dt> <dd>johnbillion</dd>
<dt>Date</dt> <dd>2014-07-08 17:51:58 +0000 (Tue, 08 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Implement email and url input types where appropriate. Props Kau-Boy. Fixes <a href="http://core.trac.wordpress.org/ticket/22183">#22183</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincssinstallcss">trunk/src/wp-admin/css/install.css</a></li>
<li><a href="#trunksrcwpadmininstallphp">trunk/src/wp-admin/install.php</a></li>
<li><a href="#trunksrcwpadminnetworksettingsphp">trunk/src/wp-admin/network/settings.php</a></li>
<li><a href="#trunksrcwpadminnetworksitenewphp">trunk/src/wp-admin/network/site-new.php</a></li>
<li><a href="#trunksrcwpadminoptionsgeneralphp">trunk/src/wp-admin/options-general.php</a></li>
<li><a href="#trunksrcwpadminusereditphp">trunk/src/wp-admin/user-edit.php</a></li>
<li><a href="#trunksrcwpadminusernewphp">trunk/src/wp-admin/user-new.php</a></li>
<li><a href="#trunksrcwploginphp">trunk/src/wp-login.php</a></li>
<li><a href="#trunksrcwpsignupphp">trunk/src/wp-signup.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincssinstallcss"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/css/install.css (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/css/install.css       2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/css/install.css  2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -152,6 +152,8 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .form-table input[type=text],
</span><ins>+.form-table input[type=email],
+.form-table input[type=url],
</ins><span class="cx"> .form-table input[type=password] {
</span><span class="cx">  width: 206px;
</span><span class="cx"> }
</span><span class="lines">@@ -295,6 +297,8 @@
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx">  .form-table td input[type="text"],
</span><ins>+       .form-table td input[type="email"],
+       .form-table td input[type="url"],
</ins><span class="cx">   .form-table td input[type="password"],
</span><span class="cx">  .form-table td select,
</span><span class="cx">  .form-table td textarea,
</span></span></pre></div>
<a id="trunksrcwpadmininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/install.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/install.php   2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/install.php      2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -98,7 +98,7 @@
</span><span class="cx"> ?>
</span><span class="cx"> <p class="message"><?php echo $error; ?></p>
</span><span class="cx"> <?php } ?>
</span><del>-<form id="setup" method="post" action="install.php?step=2">
</del><ins>+<form id="setup" method="post" action="install.php?step=2" novalidate="novalidate">
</ins><span class="cx">   <table class="form-table">
</span><span class="cx">          <tr>
</span><span class="cx">                  <th scope="row"><label for="weblog_title"><?php _e( 'Site Title' ); ?></label></th>
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx">          <?php endif; ?>
</span><span class="cx">          <tr>
</span><span class="cx">                  <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>
</span><del>-                       <td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />
</del><ins>+                        <td><input name="admin_email" type="email" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />
</ins><span class="cx">                   <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
</span><span class="cx">          </tr>
</span><span class="cx">          <tr>
</span></span></pre></div>
<a id="trunksrcwpadminnetworksettingsphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/network/settings.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/network/settings.php  2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/network/settings.php     2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> 
</span><span class="cx"> <div class="wrap">
</span><span class="cx">  <h2><?php echo esc_html( $title ); ?></h2>
</span><del>-       <form method="post" action="settings.php">
</del><ins>+        <form method="post" action="settings.php" novalidate="novalidate">
</ins><span class="cx">           <?php wp_nonce_field( 'siteoptions' ); ?>
</span><span class="cx">          <h3><?php _e( 'Operational Settings' ); ?></h3>
</span><span class="cx">          <table class="form-table">
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx">                  <tr>
</span><span class="cx">                          <th scope="row"><label for="admin_email"><?php _e( 'Network Admin Email' ) ?></label></th>
</span><span class="cx">                          <td>
</span><del>-                                       <input name="admin_email" type="text" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option('admin_email') ) ?>" />
</del><ins>+                                        <input name="admin_email" type="email" id="admin_email" class="regular-text" value="<?php echo esc_attr( get_site_option( 'admin_email' ) ) ?>" />
</ins><span class="cx">                                   <p class="description">
</span><span class="cx">                                          <?php _e( 'This email address will receive notifications. Registration and support emails will also come from this address.' ); ?>
</span><span class="cx">                                  </p>      
</span></span></pre></div>
<a id="trunksrcwpadminnetworksitenewphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/network/site-new.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/network/site-new.php  2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/network/site-new.php     2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx">  foreach ( $messages as $msg )
</span><span class="cx">          echo '<div id="message" class="updated"><p>' . $msg . '</p></div>';
</span><span class="cx"> } ?>
</span><del>-<form method="post" action="<?php echo network_admin_url('site-new.php?action=add-site'); ?>">
</del><ins>+<form method="post" action="<?php echo network_admin_url( 'site-new.php?action=add-site' ); ?>" novalidate="novalidate">
</ins><span class="cx"> <?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?>
</span><span class="cx">  <table class="form-table">
</span><span class="cx">          <tr class="form-field form-required">
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">          </tr>
</span><span class="cx">          <tr class="form-field form-required">
</span><span class="cx">                  <th scope="row"><?php _e( 'Admin Email' ) ?></th>
</span><del>-                       <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>
</del><ins>+                        <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>
</ins><span class="cx">           </tr>
</span><span class="cx">          <tr class="form-field">
</span><span class="cx">                  <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>
</span></span></pre></div>
<a id="trunksrcwpadminoptionsgeneralphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/options-general.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/options-general.php   2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/options-general.php      2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -86,7 +86,7 @@
</span><span class="cx"> <div class="wrap">
</span><span class="cx"> <h2><?php echo esc_html( $title ); ?></h2>
</span><span class="cx"> 
</span><del>-<form method="post" action="options.php">
</del><ins>+<form method="post" action="options.php" novalidate="novalidate">
</ins><span class="cx"> <?php settings_fields('general'); ?>
</span><span class="cx"> 
</span><span class="cx"> <table class="form-table">
</span><span class="lines">@@ -102,16 +102,16 @@
</span><span class="cx"> <?php if ( !is_multisite() ) { ?>
</span><span class="cx"> <tr>
</span><span class="cx"> <th scope="row"><label for="siteurl"><?php _e('WordPress Address (URL)') ?></label></th>
</span><del>-<td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
</del><ins>+<td><input name="siteurl" type="url" id="siteurl" value="<?php form_option( 'siteurl' ); ?>"<?php disabled( defined( 'WP_SITEURL' ) ); ?> class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) echo ' disabled' ?>" /></td>
</ins><span class="cx"> </tr>
</span><span class="cx"> <tr>
</span><span class="cx"> <th scope="row"><label for="home"><?php _e('Site Address (URL)') ?></label></th>
</span><del>-<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
</del><ins>+<td><input name="home" type="url" id="home" value="<?php form_option( 'home' ); ?>"<?php disabled( defined( 'WP_HOME' ) ); ?> class="regular-text code<?php if ( defined( 'WP_HOME' ) ) echo ' disabled' ?>" />
</ins><span class="cx"> <p class="description"><?php _e('Enter the address here if you want your site homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></p></td>
</span><span class="cx"> </tr>
</span><span class="cx"> <tr>
</span><span class="cx"> <th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
</span><del>-<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
</del><ins>+<td><input name="admin_email" type="email" id="admin_email" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
</ins><span class="cx"> <p class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></p></td>
</span><span class="cx"> </tr>
</span><span class="cx"> <tr>
</span><span class="lines">@@ -130,7 +130,7 @@
</span><span class="cx"> <?php } else { ?>
</span><span class="cx"> <tr>
</span><span class="cx"> <th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
</span><del>-<td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
</del><ins>+<td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
</ins><span class="cx"> <p class="description"><?php _e('This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>') ?></p>
</span><span class="cx"> <?php
</span><span class="cx"> $new_admin_email = get_option( 'new_admin_email' );
</span></span></pre></div>
<a id="trunksrcwpadminusereditphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/user-edit.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/user-edit.php 2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/user-edit.php    2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -228,7 +228,7 @@
</span><span class="cx">  * @since 3.0.0
</span><span class="cx">  */
</span><span class="cx"> ?>
</span><del>-<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action( 'user_edit_form_tag' ); ?>>
</del><ins>+<form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php do_action( 'user_edit_form_tag' ); ?>>
</ins><span class="cx"> <?php wp_nonce_field('update-user_' . $user_id) ?>
</span><span class="cx"> <?php if ( $wp_http_referer ) : ?>
</span><span class="cx">  <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />
</span><span class="lines">@@ -401,7 +401,7 @@
</span><span class="cx"> <table class="form-table">
</span><span class="cx"> <tr>
</span><span class="cx">  <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
</span><del>-       <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text ltr" />
</del><ins>+        <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" />
</ins><span class="cx">   <?php
</span><span class="cx">  $new_email = get_option( $current_user->ID . '_new_email' );
</span><span class="cx">  if ( $new_email && $new_email['newemail'] != $current_user->user_email && $profileuser->ID == $current_user->ID ) : ?>
</span><span class="lines">@@ -414,7 +414,7 @@
</span><span class="cx"> 
</span><span class="cx"> <tr>
</span><span class="cx">  <th><label for="url"><?php _e('Website') ?></label></th>
</span><del>-       <td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
</del><ins>+        <td><input type="url" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td>
</ins><span class="cx"> </tr>
</span><span class="cx"> 
</span><span class="cx"> <?php
</span></span></pre></div>
<a id="trunksrcwpadminusernewphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/user-new.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/user-new.php  2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-admin/user-new.php     2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -274,9 +274,11 @@
</span><span class="cx">  if ( !is_super_admin() ) {
</span><span class="cx">          echo '<p>' . __( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) . '</p>';
</span><span class="cx">          $label = __('E-mail');
</span><ins>+               $type  = 'email';
</ins><span class="cx">   } else {
</span><span class="cx">          echo '<p>' . __( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) . '</p>';
</span><span class="cx">          $label = __('E-mail or Username');
</span><ins>+               $type  = 'text';
</ins><span class="cx">   }
</span><span class="cx"> ?>
</span><span class="cx"> <?php
</span><span class="lines">@@ -286,14 +288,14 @@
</span><span class="cx">  * @since 3.0.0
</span><span class="cx">  */
</span><span class="cx"> ?>
</span><del>-<form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action( 'user_new_form_tag' );?>>
</del><ins>+<form action="" method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
</ins><span class="cx"> <input name="action" type="hidden" value="adduser" />
</span><span class="cx"> <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
</span><span class="cx"> 
</span><span class="cx"> <table class="form-table">
</span><span class="cx">  <tr class="form-field form-required">
</span><span class="cx">          <th scope="row"><label for="adduser-email"><?php echo $label; ?></label></th>
</span><del>-               <td><input name="email" type="text" id="adduser-email" class="wp-suggest-user" value="" /></td>
</del><ins>+                <td><input name="email" type="<?php echo $type; ?>" id="adduser-email" class="wp-suggest-user" value="" /></td>
</ins><span class="cx">   </tr>
</span><span class="cx">  <tr class="form-field">
</span><span class="cx">          <th scope="row"><label for="adduser-role"><?php _e('Role'); ?></label></th>
</span><span class="lines">@@ -334,7 +336,7 @@
</span><span class="cx"> ?>
</span><span class="cx"> <p><?php _e('Create a brand new user and add them to this site.'); ?></p>
</span><span class="cx"> <?php /** This action is documented in wp-admin/user-new.php */ ?>
</span><del>-<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action( 'user_new_form_tag' );?>>
</del><ins>+<form action="" method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate"<?php do_action( 'user_new_form_tag' );?>>
</ins><span class="cx"> <input name="action" type="hidden" value="createuser" />
</span><span class="cx"> <?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?>
</span><span class="cx"> <?php
</span><span class="lines">@@ -358,7 +360,7 @@
</span><span class="cx">  </tr>
</span><span class="cx">  <tr class="form-field form-required">
</span><span class="cx">          <th scope="row"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
</span><del>-               <td><input name="email" type="text" id="email" value="<?php echo esc_attr($new_user_email); ?>" /></td>
</del><ins>+                <td><input name="email" type="email" id="email" value="<?php echo esc_attr( $new_user_email ); ?>" /></td>
</ins><span class="cx">   </tr>
</span><span class="cx"> <?php if ( !is_multisite() ) { ?>
</span><span class="cx">  <tr class="form-field">
</span><span class="lines">@@ -371,7 +373,7 @@
</span><span class="cx">  </tr>
</span><span class="cx">  <tr class="form-field">
</span><span class="cx">          <th scope="row"><label for="url"><?php _e('Website') ?></label></th>
</span><del>-               <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>
</del><ins>+                <td><input name="url" type="url" id="url" class="code" value="<?php echo esc_attr( $new_user_uri ); ?>" /></td>
</ins><span class="cx">   </tr>
</span><span class="cx"> <?php
</span><span class="cx"> /**
</span></span></pre></div>
<a id="trunksrcwploginphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-login.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-login.php   2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-login.php      2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -681,14 +681,14 @@
</span><span class="cx">  login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
</span><span class="cx"> ?>
</span><span class="cx"> 
</span><del>-<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
</del><ins>+<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">
</ins><span class="cx">   <p>
</span><span class="cx">          <label for="user_login"><?php _e('Username') ?><br />
</span><span class="cx">          <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
</span><span class="cx">  </p>
</span><span class="cx">  <p>
</span><span class="cx">          <label for="user_email"><?php _e('E-mail') ?><br />
</span><del>-               <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(wp_unslash($user_email)); ?>" size="25" /></label>
</del><ins>+                <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label>
</ins><span class="cx">   </p>
</span><span class="cx">  <?php
</span><span class="cx">  /**
</span></span></pre></div>
<a id="trunksrcwpsignupphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-signup.php (29029 => 29030)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-signup.php  2014-07-08 17:47:53 UTC (rev 29029)
+++ trunk/src/wp-signup.php     2014-07-08 17:51:58 UTC (rev 29030)
</span><span class="lines">@@ -188,7 +188,7 @@
</span><span class="cx">  <?php if ( $errmsg = $errors->get_error_message('user_email') ) { ?>
</span><span class="cx">          <p class="error"><?php echo $errmsg ?></p>
</span><span class="cx">  <?php } ?>
</span><del>-       <input name="user_email" type="text" id="user_email" value="<?php  echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?>
</del><ins>+        <input name="user_email" type="email" id="user_email" value="<?php  echo esc_attr($user_email) ?>" maxlength="200" /><br /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?>
</ins><span class="cx">   <?php
</span><span class="cx">  if ( $errmsg = $errors->get_error_message('generic') ) {
</span><span class="cx">          echo '<p class="error">' . $errmsg . '</p>';
</span><span class="lines">@@ -435,7 +435,7 @@
</span><span class="cx">  ?>
</span><span class="cx"> 
</span><span class="cx">  <h2><?php printf( __( 'Get your own %s account in seconds' ), get_current_site()->site_name ) ?></h2>
</span><del>-       <form id="setupform" method="post" action="wp-signup.php">
</del><ins>+        <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
</ins><span class="cx">           <input type="hidden" name="stage" value="validate-user-signup" />
</span><span class="cx">          <?php
</span><span class="cx">          /** This action is documented in wp-signup.php */
</span></span></pre>
</div>
</div>

</body>
</html>