Make WordPress Core

Changeset 20196


Ignore:
Timestamp:
03/15/2012 06:09:14 PM (15 years ago)
Author:
nacin
Message:

Revert type="email" (HTML5) as some browsers that do validation on these fields do not work for IDN domains yet. Core does not support these well either, but server-side validation can at least be dealt with by a plugin. see #17863.

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r20168 r20196  
    9393                }
    9494?></td>
    95         <td><input type="email" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>
     95        <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2" id="email" /></td>
    9696</tr>
    9797<tr valign="top">
  • trunk/wp-admin/includes/template.php

    r20168 r20196  
    324324                <div class="inside">
    325325                <label for="author-email"><?php _e('E-mail') ?></label>
    326                 <input type="email" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
     326                <input type="text" name="newcomment_author_email" size="50" value="" tabindex="102" id="author-email" />
    327327                </div>
    328328
  • trunk/wp-admin/network/site-users.php

    r20168 r20196  
    301301                <tr>
    302302                        <th scope="row"><?php _e( 'Email' ) ?></th>
    303                         <td><input type="email" class="regular-text" name="user[email]" /></td>
     303                        <td><input type="text" class="regular-text" name="user[email]" /></td>
    304304                </tr>
    305305                <tr>
  • trunk/wp-admin/options-general.php

    r20168 r20196  
    114114<tr valign="top">
    115115<th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
    116 <td><input name="admin_email" type="email" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
     116<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
    117117<span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td>
    118118</tr>
    … …  
    133133<tr valign="top">
    134134<th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
    135 <td><input name="new_admin_email" type="email" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
     135<td><input name="new_admin_email" type="text" id="new_admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text ltr" />
    136136<span 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>') ?></span>
    137137<?php
  • trunk/wp-admin/user-edit.php

    r20168 r20196  
    334334<tr>
    335335        <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    336         <td><input type="email" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
     336        <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text" />
    337337        <?php
    338338        $new_email = get_option( $current_user->ID . '_new_email' );
Note: See TracChangeset for help on using the changeset viewer.