WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2014 05:51:58 PM (7 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r28479 r29030  
    229229 */
    230230?>
    231 <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' ); ?>>
     231<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' ); ?>>
    232232<?php wp_nonce_field('update-user_' . $user_id) ?>
    233233<?php if ( $wp_http_referer ) : ?>
     
    402402<tr>
    403403    <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
    404     <td><input type="text" name="email" id="email" value="<?php echo esc_attr($profileuser->user_email) ?>" class="regular-text ltr" />
     404    <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" />
    405405    <?php
    406406    $new_email = get_option( $current_user->ID . '_new_email' );
     
    415415<tr>
    416416    <th><label for="url"><?php _e('Website') ?></label></th>
    417     <td><input type="text" name="url" id="url" value="<?php echo esc_attr($profileuser->user_url) ?>" class="regular-text code" /></td>
     417    <td><input type="url" name="url" id="url" value="<?php echo esc_attr( $profileuser->user_url ) ?>" class="regular-text code" /></td>
    418418</tr>
    419419
Note: See TracChangeset for help on using the changeset viewer.