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-topic-tag.php

    r5310 r5561  
    3434                    <div>
    3535                        <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label>
    36                         <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />
     36                        <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />
    3737                    </div>
    3838
    3939                    <div>
    4040                        <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label>
    41                         <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />
     41                        <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />
    4242                    </div>
    4343
    4444                    <div>
    4545                        <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label>
    46                         <input type="text" id="tag-description" name="tag-description" size="20" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" />
     46                        <input type="text" id="tag-description" name="tag-description" size="20" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" />
    4747                    </div>
    4848
    4949                    <div class="bbp-submit-wrapper">
    50                         <button type="submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button>
     50                        <button type="submit" class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button>
    5151
    5252                        <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
     
    7272                    <div>
    7373                        <label for="tag-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>
    74                         <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" tabindex="<?php bbp_tab_index(); ?>" maxlength="40" />
     74                        <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" maxlength="40" />
    7575                    </div>
    7676
    7777                    <div class="bbp-submit-wrapper">
    78                         <button type="submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>
     78                        <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>
    7979
    8080                        <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
     
    104104
    105105                        <div class="bbp-submit-wrapper">
    106                             <button type="submit" tabindex="<?php bbp_tab_index(); ?>" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>
     106                            <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>
    107107
    108108                            <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
Note: See TracChangeset for help on using the changeset viewer.