Skip to:
Content

BuddyPress.org

Changeset 9225


Ignore:
Timestamp:
12/10/2014 03:37:19 PM (5 years ago)
Author:
boonebgorges
Message:

Use 'type="email"' for email inputs in registration and settings templates.

This provides a better experience on mobile devices and other browsers that
support the 'email' type.

Props standardspace.
See #5914.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/members
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r8819 r9225  
    3636                <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    3737                <?php do_action( 'bp_signup_email_errors' ); ?>
    38                 <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
     38                <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />
    3939
    4040                <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r8686 r9225  
    1111
    1212    <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
    13     <input type="text" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" />
     13    <input type="email" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" />
    1414
    1515    <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.