Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/10/2014 11:21:48 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Deprecate tabindex functions and their usages. Props joedolson. Fixes #2714.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-user-edit.php

    r5035 r5561  
    2323        <div>
    2424            <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label>
    25             <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     25            <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" />
    2626        </div>
    2727
    2828        <div>
    2929            <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label>
    30             <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     30            <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" />
    3131        </div>
    3232
    3333        <div>
    3434            <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label>
    35             <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     35            <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" />
    3636        </div>
    3737
     
    5656        <div>
    5757            <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label>
    58             <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" tabindex="<?php bbp_tab_index(); ?>" />
     58            <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" />
    5959        </div>
    6060
     
    6363            <div>
    6464                <label for="<?php echo esc_attr( $name ); ?>"><?php echo apply_filters( 'user_' . $name . '_label', $desc ); ?></label>
    65                 <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     65                <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" />
    6666            </div>
    6767
     
    8181        <div>
    8282            <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label>
    83             <textarea name="description" id="description" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>
     83            <textarea name="description" id="description" rows="5" cols="30"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>
    8484        </div>
    8585
     
    9797        <div>
    9898            <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label>
    99             <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     99            <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" />
    100100        </div>
    101101
     
    103103            <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label>
    104104
    105             <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
     105            <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" />
    106106
    107107            <?php
     
    124124            <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label>
    125125            <fieldset class="bbp-form password">
    126                 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>" />
     126                <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" />
    127127                <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span>
    128128
    129                 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>" />
     129                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" />
    130130                <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br />
    131131
     
    153153                    <label for="super_admin"><?php _e( 'Network Role', 'bbpress' ); ?></label>
    154154                    <label>
    155                         <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>" />
     155                        <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> />
    156156                        <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?>
    157157                    </label>
     
    176176            <?php bbp_edit_user_form_fields(); ?>
    177177
    178             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
     178            <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
    179179        </div>
    180180    </fieldset>
Note: See TracChangeset for help on using the changeset viewer.